Page 1 of 1

UUID instead of Title in Wiki

PostPosted:Fri Feb 15, 2019 11:02 am
by daha87
Hi everybody,

I'm new here in the forum and new to OpenKM and I can say that I'm very impressed with OpenKM, so congratulations to the development team!!.

Anyways, I have a problem with the Wiki pages, everytime I try to link a Wiki Page to another I can't do it because the search function doesn't give back any results. So I went to see the Tables in the Databank and found out that the Column WKP_TITLE contains the UUID of the Wiki Page and when I provide the UUID to the search function it finds the Wiki Page. So apparently OpenKM isn't writing the correct Title into the Column and therefor I'm unable to search for it.

Does anyone have an idea of how can i fix this problem? Also, how can fix the Title of the Wiki pages I already created?

I'm using OpenKM Ver. 6.3.6 with Microsoft SQL Server 2014

Regards,
David

Re: UUID instead of Title in Wiki

PostPosted:Sat Feb 16, 2019 9:48 am
by jllort
Please share here some screenshots, I would like to watch:
-Existing document and the search what you are trying
-Related database values

might be there's a bug, then we will solve it

Re: UUID instead of Title in Wiki

PostPosted:Mon Feb 18, 2019 11:08 am
by daha87
Hi jllort,

I added 3 Screenshots

SQL: Here is how the table in SQL Server looks like
UUID: Here I search directly through the UUID
TItle: Here I tried to add a link to an existing Wiki Page by searching through the title

Re: UUID instead of Title in Wiki

PostPosted:Fri Feb 22, 2019 6:34 pm
by jllort
I have reviewed the code and in case it is an existing document into the repository set the UUID in both fields ( node and title ).

This is an old code and I do not keep all in mind, but well several things to consider:
- you have documents what are into the repository with wiki pages -> these are identified by uuid
- you have wiki pages that are not into the repository -> these are identified by title.
- I think history use title value to retrieve the list of changes of a wiki page ( you are not able to rename a wiki page )

I think these are the reason why we are setting the uuid rather document name. I have played with code to set document name, it is quite easy, but after reviewing with more detail and understanding how database and title are used I think it is not good idea apply the change.

Finally, when you are trying to link a document you should use document icon either wikipage icon.

Re: UUID instead of Title in Wiki

PostPosted:Wed Mar 06, 2019 1:32 pm
by daha87
Thanks for your answer!

Then I guess I better leave it like that and I won't use the Wiki feature at the moment

Thanks again!