Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distinguish between non-recognized file type and error when assessing file type #1028

Open
ahayes opened this issue Apr 21, 2022 · 0 comments
Labels
Bug Design or implementation flaw that causes grief. Java Nunaliit Java related Media Handling Related to the uploading, processing, or rendering of multi-media
Milestone

Comments

@ahayes
Copy link
Member

ahayes commented Apr 21, 2022

When a user uploads a file to a attach to a Nunaliit atlas document via a schema attribute of type "file", Nunaliit will attempt to figure out what type of file it is. If it recognizes the type of file as one that it can perform enhanced processing on, such as video, audio, image, PDF, GPX, etc. then it will proceed with those special workflows. By design, if it does not recognize the type of file, it will proceed to attach it and display a generic "document" icon in place of a video/image/PDF thumbnail, audio icon, or other flair. This allows for atlases to accommodate unexpected files which could be stored and retrieved. At a later date, files could be reprocessed if additional support for the formatted were warranted. This is how GPX file support support came to be, for example.

Unfortunately, if an exception occurs while trying to identify the file type, Nunaliit may erroneously conclude that the file was not a recognized type and proceed without proper processing. This would result in unexpected behaviour such as a generic icon being displayed in place of a thumbnail, a video or audio file that won't play in the browser because it was not transcoded to a supported format, or other issues depending on the file type. Additionally, No plugin found for uploaded file class: null errors may be seen in Nunaliit's log files.

Nunaliit should be improved to distinguish between non-recognized file type and error when assessing file type.

@ahayes ahayes added Bug Design or implementation flaw that causes grief. Java Nunaliit Java related Media Handling Related to the uploading, processing, or rendering of multi-media labels Apr 21, 2022
@ahayes ahayes added this to the 2.2.9 milestone Apr 21, 2022
@billingb billingb removed their assignment Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Design or implementation flaw that causes grief. Java Nunaliit Java related Media Handling Related to the uploading, processing, or rendering of multi-media
Projects
None yet
Development

No branches or pull requests

2 participants