Page 1 of 1

Doc Or Folder URL with Special Characters will be truncated

PostPosted:Wed Jan 11, 2012 3:42 am
by kevinchang
Hi jllort and pavila,

Sorry for bother again.

Today I tested URL location for Doc and Folder, and I find a problem here:

If a Folder contains special char such as "&", the following part of the folder name will be truncated if I enter the URL into browser.

For example: A folder URL is like this:
Code: Select all
http://doc.arraynetworks.com.cn/OpenKM/index.jsp?fldPath=/okm:categories/Project/Product_AMP_8_3/Product & Vmware Integration

After enter it into browser:
OpenKM will prompt
failed to resolve path okm:categories/Project/Product_AMP_8_3/Product relative to node /: 'okm:categories/Project/Product_AMP_8_3/Product ' is not a valid path: Trailing slashes not allowed in prefixes and names.: 'okm:categories/Project/Product_AMP_8_3/Product ' is not a valid path: Trailing slashes not allowed in prefixes and names.
It's clear that other chars after "&" was lost.
The total URL length is 125, it doest not over the max GET length.

By the way, I remembered jllort replied a post that all URLs are in encoded format, but I see clear text in URL in my test base.
I am using Version: 5.1.9-SNAPSHOT (build: 7409)

Re: Doc Or Folder URL with Special Characters will be trunca

PostPosted:Thu Jan 12, 2012 7:14 pm
by pavila
Created this issue http://issues.openkm.com/view.php?id=2010 to handle it. Now should work, please try the nigh build.

If the problems persists, please add a comment in the issue.

Re: Doc Or Folder URL with Special Characters will be trunca

PostPosted:Fri Jan 13, 2012 8:45 am
by kevinchang
Hi pavila,

Thank you for your help, it works well for special char "&" now!
By the way, the encoded URL does not dispose "blank space" to "+", is it by design or some other reason?

Re: Doc Or Folder URL with Special Characters will be trunca

PostPosted:Mon Jan 16, 2012 12:09 pm
by pavila
We pass the right encoded URL to the "Copy-To-Clipboard Flash", but it replace the "+" with " ". I have made a little change and now I expect it to be ok. Please, check with the night build.

Re: Doc Or Folder URL with Special Characters will be trunca

PostPosted:Tue Feb 07, 2012 7:10 am
by kevinchang
hi pavila,

I've tested with latest nightly build today, spaces can be correctly encoded into "+".
Thank you very much!
By the way, sorry for reply late because I was on vocation in the past two weeks. :)

Re: Doc Or Folder URL with Special Characters will be trunca

PostPosted:Wed Feb 08, 2012 4:56 pm
by pavila
Thanks for the feedback.