-
Notifications
You must be signed in to change notification settings - Fork 8
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
uploading a non-ODD results in blank screen of death #164
Comments
@sydb can you tell me more about the browser and environment you're using? When trying to reproduce this, I get the expected behavior of a modal letting you know you're doing something unexpected: |
Nevermind: I could reproduce this on roma.tei-c.org, but it's puzzling. The error pop up works correctly both locally on a Netlify dev instance. Could it be something with how Roma is bootstrapped on tei-c.org? Or maybe this would simply be fixed by making a new release? |
There were no automated pipelines in place to build the Docker images at https://hub.docker.com/r/teic/romajs. I just added a GitHub action ("Docker") to build and push the Docker images for every git push. It already built successfully and the dev image is updated now. This updated dev image is deployed at https://roma.tei-c.de/ (at Paderborn University) and shows the expected behavior in catching the error and displaying the modal. The deployment at https://roma.tei-c.org/ (at Huma-Num) is running from the old latest image. How should we proceed there? Options I see
The deployment at Huma-Num needs to be updated manually afterwards in any case. |
My preference would be option 3 but I think this for @raffazizzi to decide |
I'll proceed with 3. since there are a few other useful minor changes that can be released. |
If you
The resulting screen is entirely blank. Looking at source of the blank web page the
<html:body>
has an empty<html:div id=romajs>
and an empty<html:script src=…>
.To be fair, I do not expect that Roma do much with something that does not meet its criteria for a proper ODD file. But it should at least give a “I’m sorry, I cannot deal with this file” error message. I consider this a BUG, thus the “bug” label for this ticket.
below
I do not know what criteria Roma uses to define a proper ODD file. I tried a DocBook document, and not surprisingly it did not work. I tried an ODD which had nothing but a
<schemaSpec>
, and that did not work, either. It would be nice if Roma further differentiated why an uploaded file is not usable. Something like:<title>
(or anything else required) is missing from<teiHeader>
(or, indeed, whole<teiHeader>
is missing, of course)<schemaSpec>
is missingI consider this a good idea, but much less important, thus an enhancement; hence the “enhancement” label, too.
The text was updated successfully, but these errors were encountered: