Closed buckett closed 5 years ago
What happens if you try to upload the same file normally, through the backend?
I get the expected errors:
Error validating "20M". Cannot store files with the media type "application/octet-stream".
Error validating "20M". Cannot store files with the resolved extension "bin".
Yep, through the admin backend I get that error:
Error validating "1M". Cannot store files with the media type "application/octet-stream".
Error validating "1M". Cannot store files with the resolved extension "bin".
I just would have expected the collecting frontend to show a message saying it's not a supported file type rather than generating a 500 error and leaving a what seems unrelated message in the logs. In lots of ways it's more important for the collecting page than the admin interface as the people using it may not understand the limits of the software.
The reallow-controller branch should fix the issue. Put simply, the exception is raised due to some unexpected behavior of ACL's removeAllow()
.
After closer investigation we discovered a bug in S core that's responsible for the PermissionDeniedException
you're seeing. We've patched the bug in the develop branch. An upcoming bug fix release should resolve this issue without having to apply the changes currently in the reallow-controller branch.
I was recently testing the our collecting form with larger files and I was just generating a large file with
dd
:and then attaching this file as an upload. However when Omeka attempted to process this submission it generates a permission error. It turned out even small files generated with this method resulted in the same error. However a 18MB JPG would upload file.
I think it should tell the user that the supplied file isn't supported.
The message that's in the logs is: