Page 1 of 2

Cannot use "URL" as a link to locate Categories

PostPosted:Mon Dec 05, 2011 10:45 am
by kevinchang
Today, I created several Categories in "Categories" Tab. They are folder-like and I see "URL" and "WebDAV" are under newly created category, therefore, I cllick the "URL" under "Properties" of the Category, then paste it into my browser. Then weird thing happened: OpenKM will only show me the index.jsp.
By the way, folders in Taxonomy cannot be located either.

My question is:

Whether it is a bug or just we cannot locate a folder via "URL"?

My Version: 5.1.9-SNAPSHOT (build: 7362)

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Tue Dec 06, 2011 6:10 pm
by jllort
It's a bug.

Categories and thesaurus are newer than implementation of the feature at taxonomy ( really url jump is only thinked to taxonomy nodes ). I've added the ticket at http://issues.openkm.com/view.php?id=1927

About webdav it's normall not appearing, because really categories is a logical tree not phisical on directory and is not implemented this kind of navigation, I've add other ticket for it. It's other kind of problem. I've added http://issues.openkm.com/view.php?id=1928

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Wed Dec 07, 2011 3:10 am
by kevinchang
Hi jllort,

Thank you for your quick response.
I just tested the URL location function, it does not work for Taxonomy either, only redirecting me to index.jsp.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Thu Dec 08, 2011 11:40 am
by jllort
Can you test in our online demo.
Could you put here your url.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Thu Dec 08, 2011 12:54 pm
by kevinchang
Hi jllort,

The demo site works well for Taxonomy URL location. After paste the url into my browser, and then press enter, the demo site keep the pasted URL and then relocate me to the correct dir.

However, in my site: my sample URL is http://10.3.0.57/OpenKM/index.jsp?fldPath=/okm:root/PO, after pressing ENTER key, "?fldPath=/okm:root/PO" disappeared.
It's quite weid why they are different. My version is Version: 5.1.9-SNAPSHOT (build: 7366).

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Thu Dec 08, 2011 1:04 pm
by kevinchang
I've used httpwatch to check the communication. My site return with 302 after I entered the URL, while demo site return 200 with the same action...

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Thu Dec 08, 2011 5:27 pm
by jllort
Try today nightly build, I've solved the bug this morning.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Fri Dec 09, 2011 2:45 am
by kevinchang
Thank you jllort, I will try 7367 after it finishes.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Fri Dec 09, 2011 7:32 am
by kevinchang
Hi jllort,

I used exclusive method to trace why my installation behaves differently from the demo site.

1. I use OpenKM-5.1.8_JBoss-4.2.3.GA.zip and setup a clean installation--> create a folder in web page --> URL location works well.
2. I use the installation of step 1, change to MySQL mode, but not changing repository.xml to avoid all data storing into MySQL.
hibernate.hbm2ddl=create, then excecute bin/run.sh -b 0.0.0.0 -->
This time, URL location for Taxonomy folders becomes invalid.
3.I use the installation of step 2, change repository.xml to MySQL mode. This time, URL location is still invalid.

I guess repository accessing using hsql and Mysql is different. That may be the root cause...

Well, sorry for so long a post.
I just tested Category URL location fix in version 7366 with default HSQL installation, however, both Firefox and IE8 will hung and prompt message saying a script stop response, stop or continue to wait. So, at least this function not worked in my installation of Step 1.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Fri Dec 09, 2011 4:46 pm
by csilva
I had the same issue with the root taxonomy folders as you, kevinchang, where the urls wouldn't work and the "?fldPath=/okm:root/PO" would disappear. I fixed this on mine, and this fix should work for you as well, by changing the "application.url" from "http://10.3.0.57/OpenKM/index.jsp" to "http://10.3.0.57/OpenKM/frontend/index.jsp". What happens is that requests to "OpenKM/index.jsp" automatically get forwarded to "OpenKM/frontend/index.jsp", and the url parameters get lost in the forwarding. Note that if you use the WebDAV links, those will now break as the WebDAV doesn't like "frontend/" in the url.

I have not tested build 7367 yet, as I'm not sure where to find it (http://integration.openkm.com/5.1.x/ has build 7366). 7366, as you probably already know jllort, gets stuck at "Loading taxonomy - eval browser params" when trying to use a link to a category.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Sat Dec 10, 2011 12:36 am
by kevinchang
Hi csilva,

Thank you for your advice,I will try your config later.
My test base is 7366 too. My finding is that default installation works well for taxonomy URL location, but it will fail if I use Mysql database. Since my env badly need WebDAV function, I've got to fall back on jllort's MySql solution.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Sat Dec 10, 2011 6:33 pm
by jllort
For the mysql problem use other post. And explain your hsql scenario and mysql scenario to understanding differences, and the steps you've done to get mysql installation running ( describe if it's fresh or migrated etc ... )

About testing version of integration.openkm.com ensure you stop jboss and delete folders tmp and work under server/default. Tell me if it solves the problem or not and continues persisting.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Sun Dec 11, 2011 2:30 pm
by kevinchang
Hi jllort,

About Integration Nightly Build 7366, I use a fresh installation, and the phenomenon is as the description above, the browser will hung, saying waiting a script that stops responding.

For Mysql-HSql comparision installation, I also select a fresh installation from the beginning.
I will start another post to list my detailed steps about mysql installation tomorrow. The problem of URL location to Taxonomy folder only exists in my Mysql fresh installation, the default HSql fresh installation works well.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Tue Dec 13, 2011 11:16 am
by pavila
I have a couple of problem with the implementation, so please comments are welcome.

Note: Please add comments in the Mantis Ticket (http://issues.openkm.com/view.php?id=1928) better than here.

Re: Cannot use "URL" as a link to locate Categories

PostPosted:Mon Jan 09, 2012 2:59 am
by kevinchang
hi pavila,

URL link to locate Categories works well for default installation now.
However, we are using mysql as database, and we still cannot locate a Category via the URL link.
The phenomenon is that if I type a URL like : http://doc.XXX.com.cn/OpenKM/index.jsp? ... roduct_9_0 into browser and press enter, the URL will be redirect to http://doc.XXX.com.cn/OpenKM/frontend/index.jsp.
Problems happened here: all parameters following index.jsp were lost.

Temporary workaround is set the following value in Admin Panel.
application.url String http://doc.XXX.com.cn/OpenKM/frontend/index.jsp
But this will affect WebDAV access.

This problem still exist on Version: 5.1.9-SNAPSHOT (build: 7406)