Page 1 of 1

Unable to check-in Filename with spaces

PostPosted:Thu Jan 06, 2011 9:53 pm
by johnnylaww
I have OpenKM 5.0 installed and running except for an error I just recently discovered. If I check-out a file that has a filename containing spaces, ie "This is My File.xls", when the download window appears, the spaces have been replaced with underscores, ie "This_is_My_File.xls". When I try to check the file back in, I am prompted that the filename is different. I have tried to replace the spaces with underscores and vice versa. I am unable to check-out/check-in any file which has spaces in the filename. I can perform the check-out/in procedure with numerous other files which do not contain spaces in the filename. Does anyone have any ideas?

*UPDATE*

This seems to be an issue with Internet Explorer. All files download fine using Firefox or Chrome. There are some postings I found through google with work arounds. But these are above my level of coding. Here is the link to the forum post describing the fix. http://social.msdn.microsoft.com/forums ... 65dfc19cf/

Here is the suggested fix that would need to be added to the proper OpenKM file.
Code: Select all
String userAgent = request.getHeader("User-Agent");
    if (userAgent.contains("MSIE 7.0")) {
        filename = filename.replace(" ", "%20");    
    }         
    response.addHeader("Content-disposition", "attachment;filename=\"" + filename+"\"");

Re: Unable to check-in Filename with spaces

PostPosted:Sat Jan 08, 2011 9:43 am
by jllort
Which internet explorer version, please ?

Re: Unable to check-in Filename with spaces

PostPosted:Mon Jan 10, 2011 6:36 pm
by pavila
Microsoft claims to have a hotfix for this bug => http://support.microsoft.com/kb/952730

I've have created a ticket for this bug: 0001511: Unable to check-in Filename with spaces. Please, use this ticket to provide more info or follow the progression.