-
Notifications
You must be signed in to change notification settings - Fork 1
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
apostrophe, double-quote, colon in file name of deposited file causes an error #40
Comments
Investigating this further, testing with the file 'collectivités_traumatisé's.pdf' the copy operation fails on this line:
The error is caught, but the details are not displayed, tracing the error, the details are actually: It fails because the file is not found. The file is not found because when I look at what is actually stored in that location on disk, it is this: So does EPrints substitute apostrophes in file names with "=0027" when it saves them to disk? |
regex to catch the apostrophe in filename transformation on disk improved error handling to provide more details on the error in the log
added a regex to catch this transformation of filename on disk, and more details on the error log if/when copy operation fails again. this resolved the issue on my repository. |
will include this fix in next release 1.2.3 |
The double-apostrophe causes the same failure. |
Another special character that gets replaced, in addition to quote, double-quote, colon. |
…name, addition of colon to the fix for: #40
Another instance of an error is if there's an apostrophe in the file name of a deposited file, then we get this:
PROBLEM DETECTED WITH 6727 CANCELLING
To reproduce the error, upload a file with an apostrophe in the name, for example:
l'Universite_Concordia.pdf
We need to escape any apostrophes in the copy calls.
The text was updated successfully, but these errors were encountered: