[opencms-dev] extend html import case sensitive bug

Marcus Popetz marcus at roundpeg.com
Tue Oct 4 18:02:59 CEST 2005


Just a heads up in case anyone runs into this problem.  I've opened bug:
http://www.opencms.org/bugzilla/show_bug.cgi?id=957
on it.


The import calls toLowerCase() on the files it's creating after appending 
the target directory but not before trying to create target directories 
which causes problems if the directory you're importing into has capital 
letters or if you just like capitol letters in your filenames.  :)

CmsHtmlImport.java: line 1484 (in the version tagged wit build_6_0_0)
         String validFilename = filename.toLowerCase();


The only reason the below output lines don't show an error is that I went 
ahead and created the all lower case tree with a separate import.

Creating folder /AAU/admissions/ ... o.k.
Creating file /aau/admissions/accreditation.html ... Overwriting... o.k.
Creating file /aau/admissions/apply.html ... Overwriting... o.k.
Creating file /aau/admissions/financial_aid.html ... Overwriting

I went ahead with the workaround of not using capital letters but thought 
I'd bring it up.


-mp




More information about the opencms-dev mailing list