Copy URL to a file won't work by uuid

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.
shie
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Mon May 13, 2013 2:22 am

Re: Copy URL to a file won't work by uuid

Post by shie » Mon May 13, 2013 2:36 am

hello!
I meet the same problem.
I get the link ( http://172.18.73.38:8080/OpenKM/index.jsp?docPath=%2Fokm%3Aroot%2Ftest%2Ftest.docx )from menu File_SendDocumentLink, it works OK, I visit the link and it takes me to the file test.docx.
But, I copy the URL ( http://172.18.73.38:8080/OpenKM/index.jsp?uuid=2bf1499d-7e9a-4bf1-b4b1-8c96df48ca28 ) from Properties, it takes me to okm:root instead of the file.
Thank u!

OKM Community Version:6.2.4-DEV b:7988
Last edited by shie on Tue May 14, 2013 2:59 am, edited 1 time in total.
----------------
openKM Version 6.3.0 (build: 19782) With Community Extension

Catscratch
Platinum Boarder
Platinum Boarder
Posts: 334
Joined: Wed Feb 16, 2011 10:35 am

Re: Copy URL to a file won't work by uuid

Post by Catscratch » Mon May 13, 2013 6:58 am

jllort wrote:And in that case is not going right or goes right ?
No, in that case the error occurs.
My OpenKM installation:
- OpenKM Community 6.3.1 on Tomcat 7, Debian x64, 8GB RAM, Postgresql, LDAP, Only https

rbahntje
Junior Boarder
Junior Boarder
Posts: 28
Joined: Mon Dec 24, 2012 12:52 am

Re: Copy URL to a file won't work by uuid

Post by rbahntje » Mon May 13, 2013 12:10 pm

I am testing with same user and it doesn´t works

jllort
Moderator
Moderator
Posts: 10037
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Copy URL to a file won't work by uuid

Post by jllort » Wed May 15, 2013 6:00 am

confirmed is a bug, I have added a ticket about it http://issues.openkm.com/view.php?id=2823

peterb
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Tue Jun 12, 2018 10:36 pm

Re: Copy URL to a file won't work by uuid

Post by peterb » Tue Jun 12, 2018 11:45 pm

I ended up here while trying to search online for a solution to this issue, which still appears to be broken in version CE 6.3.6.

Here is what I have found, which may provide more clues than earlier mentioned in this thread.

If I copy the link by UUID as earlier attempts I get a link similar to the above users, in my case the link is (apart from the domain being replaced with "domain.com"):

Code: Select all

https://domain.com/OpenKM/index.jsp?uuid=cf605476-6c48-416e-8582-c5ec06e086f5
When I attempt to go to this link I end up in root as stated earlier. But the link actually also gets rewritten as shown below:

Code: Select all

https://domain.com/OpenKM/frontend/index.jsp?uuid=cf605476-6c48-416e-8582-c5ec06e086f5?lang=en-GB
As you can see the link has been rewritten to include "frontend" in the middle and "?lang=en-GB" at the end. If I now simply remove the "?lang=en-GB" at the end of the link, I actually get to the intended document (as expected).

Now looking at the configuration we have the following setting:

Code: Select all

default.lang = en-GB
If I change that setting to be blank, then the link gets rewritten to (same as above after removing "?lang=en-GB"):

Code: Select all

https://domain.com/OpenKM/frontend/index.jsp?uuid=cf605476-6c48-416e-8582-c5ec06e086f5
And this link as well as the original link do now take me to the expected document. It essentially appears as the "?lang=en-GB" causes the issue with the link. Essentially the search for the document seems to incorrectly fail when the language setting gets appended to the search string.

And yes, I did see that master user "jllort" did file a ticket for this in 2013, but I can't follow that link and the issue seems still present. Don't hesitate to let me know if you want me to file this issue somewhere else.

jllort
Moderator
Moderator
Posts: 10037
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Copy URL to a file won't work by uuid

Post by jllort » Fri Jun 15, 2018 7:06 am

The link is wrong
https://domain.com/OpenKM/frontend/inde ... lang=en-GB

Should be
https://domain.com/OpenKM/frontend/inde ... lang=en-GB ( last ? replaced by & )

From where was generated ( copied ) the URL ?

peterb
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Tue Jun 12, 2018 10:36 pm

Re: Copy URL to a file won't work by uuid

Post by peterb » Fri Jun 15, 2018 10:13 am

I get the original link via the web interface, by clicking on the link icon next to "URL", which is the second last entry on the property tab. I have created a screen shot and marked in red colour where I am clicking to get the UUID link.

This link typically looks like this (this is the first link from my original message):

Code: Select all

https://domain.com/OpenKM/index.jsp?uuid=cf605476-6c48-416e-8582-c5ec06e086f5
Then I paste that link into my web browser (Firefox ESR 52.8.1) which appears to get rewritten/redirected by OpenKM to the following (incorrect) link:

Code: Select all

https://domain.com/OpenKM/frontend/index.jsp?uuid=cf605476-6c48-416e-8582-c5ec06e086f5?lang=en-GB
So, to answer your question I'd say the link is coming from OpenKM when it rewrites the string/link to include "frontend" and then the language setting at the end of the updated/redirected link. Like you pointed out it appears to put the "?" instead of "&".
Attachments
uuid-link-to-document.png

jllort
Moderator
Moderator
Posts: 10037
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Copy URL to a file won't work by uuid

Post by jllort » Sat Jun 16, 2018 3:29 pm

do you have the property default.lang set ?
what is you application.url value ?
finally, this is happens with the latest OpenKM version ?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests