Page 1 of 1

Clarification about Search function

PostPosted:Tue Feb 22, 2011 2:04 pm
by frommilan
Hi.

I'm testing OpenKm for the company I work for . In my tests I would allow a user to see just some path and some document of the repository "okm:root" : it was easy, the user can see only 10 of 165 documents loaded.

When the user uses the search function, the same function shows more than 10 documents, for ex. 165, and the user can open them: in my opinion this is not correct. How can I restrict the search result only to 10 documents that I have authorized in read?

Thank you in advance.

Re: Clarification about Search function

PostPosted:Wed Feb 23, 2011 7:48 pm
by jllort
if user has grants to only see 10 documents, search engine mandatory only must show 10 documents. If not there's a bug.

Could try reproduce it in our online demo ? if you need administrator grants for doing it tell me and I'll give to you.

Re: Clarification about Search function

PostPosted:Thu Feb 24, 2011 9:38 am
by pavila
Please, post the the steps to reproduce the issue. The most details the better.

Re: Clarification about Search function

PostPosted:Thu Feb 24, 2011 2:41 pm
by frommilan
Hi.

In my tests I have defined a user “Benagliaa” and in taxonomy I have defined three folders:
“marketing 2010 km”
"FINANZIAMENTI KM2"
"SITI WEB KM" (sorry for the Italian names !!).

I have loaded, as user okAdmin, a total of 165 files for a demo.

Under folder “marketing 2010 km” there are now 10 files, divided in three sub-folders. The rule for the security is:
UserRole: green mark
Benagliaa: green mark
The rule in the security folder for "FINANZIAMENTI KM2" e "SITI WEB KM" is:
UserRole: red cross
Benagliaa: not indicated

User Benaglia, after the login screen, in the Taxonomy, can see only the folder “marketing 2010 km” with its sub-folders and 10 files: that’s correct, very correct!!! :D

When user Benagliaa does a search using a key “Offerta” (Offering in English) in the “Name” item, the system lists three file, with “Offerta” in the name, overall three. However these three files are in the folder "SITI WEB KM", and the I expect the system doesn’t show them. :(

I hope that explication is clear enough. Otherwise I can send you a powerpoint/word file containing printing screens.

Thank you

Gianfranco

Re: Clarification about Search function

PostPosted:Fri Feb 25, 2011 1:02 pm
by frommilan
Hi.

Another very sample example found during my tests.

I have used as user the code "Benagliaa". Via user "openKM" I have inserted the same rule for all the three paths positioned under okm:root. , The rule is:
UserRole : red cross

Naturally, when user Benagliaa connects to OpenKM, in Taxonomy he doesn't see any folder. That's correct!!
But if the same user tries to do a search, the system shows all the files matching selection criteria.
In this case I expect not see any files. Is it correct?

It seems that the function "Search" does not examine the security policy imposed.

Best regards

Gianfranco

Re: Clarification about Search function

PostPosted:Mon Feb 28, 2011 10:54 am
by pavila
I'm not sure what yo mean with "UserRole: green mark" and "UserRole: red cross". Which security check box are checked? An screenshot may help.

Which permissions have these three files are in the folder "SITI WEB KM"?

Re: Clarification about Search function

PostPosted:Tue Mar 01, 2011 4:21 pm
by frommilan
Sorry,

I have tried to send the requested screenshot, but the mail system says "The extension odp is not allowed" . :(

How can I send you my screenshots?

Thank you! :D

Gianfranco

Re: Clarification about Search function

PostPosted:Wed Mar 02, 2011 10:42 pm
by jllort
put into a zip file or directly some jpg or gif file

Re: Clarification about Search function

PostPosted:Thu Mar 03, 2011 10:39 am
by frommilan
Hi.

I send you the requested screenshot. :)

Thanks.

Re: Clarification about Search function

PostPosted:Tue Mar 08, 2011 7:43 pm
by pavila
Can you tell me the rights of any of these files that should be listed in the search?

Re: Clarification about Search function

PostPosted:Fri Mar 11, 2011 1:25 pm
by frommilan
All the files have the same rights showed in attachment.

Re: Clarification about Search function

PostPosted:Mon Mar 28, 2011 5:30 pm
by pavila
As I have seen in the screenshot, the files have read grant for UserRole. So, these files will be accessible from every OpenKM user.

Re: Clarification about Search function

PostPosted:Tue Mar 29, 2011 2:43 pm
by frommilan
Ok, thank you very match indeed.

:lol: