|
We are seeing a similar issue when a file is uploaded with either an apostrophe or single quote in the filename, e.g. "St John's College.doc".
This causes all resource functionality to break for this file, because the javascript command is terminated prematurely. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Raad Al-Rawi CARET, University of Cambridge 1st Floor, 16 Mill Lane, Cambridge CB2 1SB Tel: +44 (0)1223 765395 Fax: +44 (0)1223 765505 Web: http://www.caret.cam.ac.uk I think this issue should be escalated to at least major, because the only way of presently dealing with this is by editing the CONTENT_ERSOURCE record in the database - a last resort indeed!
I also think this is a major issue, since WebDav is becoming increasingly popular and it is common for users to put these characters in their file names.
One of our Instructors uploaded a folder via WebDAV containing several documents. The folder name was:
Papers for poster presentations (Assignment #2) After accessing that folder and its documents via the resources tool, the URLs are not encoded correctly and the user is getting 404 errors: The "bad" url looks like this: https://smartsite.ucdavis.edu:8443/access/content/group/e7aace51-c9ad-4983-8051-5fb3733be4f8/Papers%20for%20poster%20presentations%20(Assignment%20#2)/Stookey%20and%20Gonyou%201998.pdf If you upload the same folder and documents via the resources tool the URLs encode correctly: https://smartsite.ucdavis.edu:8443/access/content/group/e7aace51-c9ad-4983-8051-5fb3733be4f8/Papers%20for%20poster%20presentations%20(Assignment%20%232)/Stookey%20and%20Gonyou%201998.pdf What actually seems to happen is that the resources tools turns: Papers for poster presentations _Assignment _2_ ... into: Papers for poster presentations (Assignment #2) whereas WebDAV does not. The 2.5 branch is affected by this issue as can be seen on my test resources page:
http://qa1-nl.sakaiproject.org/portal/site/68a7c03c-342d-49c3-a319-c9f26bfc3bf5/page/e3bc2dd4-f483-4769-87ec-524a9d295e9c I created this folder (won't work) through WebDAV and you can't expand it (if you have Firebug installed you will see the JS errors). If you create a file through the resource tool with a quote in it's name the filename gets changed to replace the quote with an underscore and the display name is set to the original name (with quote). The example in my site is work'n fine. As a side note the unzip feature may also expose this bug but I haven't checked yet. Zip functionality does also expose this bug. The attached zip has a file with a quote in it which when uncompressed is unmanageable through the Resources tool.
See SAK-15001. I have a fix there.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Can't go inside with WebDAV either when the apostrophe is still in the folder name.