• Unable to check-in Filename with spaces

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #7877  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+"\"");

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.