Search Engine Improvements: permissions to list products in search results

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/22/2009 6:16:19 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Search Engine Improvements: permissions to list products in search results

Sys op: Server Win 2003 - Client Vista
Database: SQL
mojoPortal: 2-3-0-8
Browsers: IE 8, Firefox 3.0.11, Google Chrome 2.0.172.31

Hi Joe!

I've Just upgraded mojoPortal to 2.3.0.8 (pls. check your mail for translation updates).

After activating the new search features and rebuilding tha search index I have noticed that Webstore Products are included in search results for anonymous users even if webstore module is set to show only to registered users.

Both "hide to anonymous" and security settings "role that can view content = Authenticated Users" are selected and I think this should prevent anonymous users to see products details (as they cannot access the WebStore).

Note that I definitely want to include Products in search results but our WebStore should be reserved to our Community members who register.
Hiding just offer prices would be ideal but I'm not sure it is possible with current version.

Anyway, with my current settings, the new search feature causes the disclosure of information that is supposed to remain restricted to specific roles or, at least, should be shown only after registration.

Thanks.
Diego 

6/22/2009 6:33:54 AM
Gravatar
Total Posts 18439

Re: Search Engine Improvements: permissions to list products in search results

Hi Diego,

The main permissions are page level permissions, Module View permissions are supplemental as are the show/hide from anonymous, its useful for some scenarios but not for all scenarios and it would be very complicated to integrate the logic for those in the search engine. If you want to protect the store by role you really should make the page view permissions for the store rather than module view permissions. The search engine is designed to filter by page view permissions. If the module is contained on a page for which the user has view permissions the user will see the search results.

Thanks for the updated Italian resources!

I have had my eye on this Resource Blender which sounds like it would enable me to setup a web site where it would be easy to crowd source the translation of resources and encourage new translations. I haven't had a chance to play with it yet so I could be mistaken about its functionality, but thought I'd post the link in case you haven't see it.

Best,

Joe

6/22/2009 7:15:56 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: Search Engine Improvements: permissions to list products in search results

Ouch!

that also means I should review the logic of all site pages for sites where I use module security settings to show different content on role basis. For Example Shared Files but also simple HTML sections.

I think module security is a "plus" for mojoPortal and gives control and flexibility on the page content.

If module security is by-passed by the internal search engine I should really think whether to disable search engine for some or all features or re-disign the site hierarchy to downgrade security at page level only.

Please, let me know in case in future you reconsider the possibility to support module security on search feature.

Resource Blender: Yes, it could be useful to share resources on a service web. Let me know If/when you want to try the tool.

6/22/2009 7:23:37 AM
Gravatar
Total Posts 18439

Re: Search Engine Improvements: permissions to list products in search results

Hi Diego,

I don't rule out the possibility to implement those additional filters in search index to filter also by module view permissions, it will add a little complexity and will require yet another rebuild of the search index after its implemented but its doable, I will see if I can add that for the next release. The show/hide stuff is really the part that seems problematic as its not really a permission enforcement like roles.

I just tried to install resource blender from the gallery but it failed so I donloaded the file to try a manual install.

Best,

Joe

6/22/2009 8:03:08 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: Search Engine Improvements: permissions to list products in search results

Thanks, it would be great!

In the meantime, for your information, I have tested two different behaviours with different modules: WebStore Products and Shared Files.
Actually, the behaviour is the same but modules work differently with different results on information access.

With both, as said, the search result list includes content that is protected to anonomous by role at module level but when you click the link in the list:

  • For WebStore Products the result link opens the Product Page that is supposed to be hidden
  • For Shared Files the result link (to a PDF Document) opens the page that contains the module and triggers the module security that prevent the user to access the document itself.

For the moment therefore I decided to keep the site hierarchy as is and to exclude product from Searched features.
If, in future, search feature will apply module security as well, I will re-enable products.

Thanks and regards.
Diego

6/22/2009 9:23:43 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: Search Engine Improvements: permissions to list products in search results

Sorry Joe, it must be my unlucky day!

I have excluded "Products" form the list of searchable features.

In Administration Menu > Advanced Tools > Feature Installation > Web Store, I unckeched the "sarchable" flag and copied the GUID 0cefbf18-56de-11dc-8f36-bac755d89593 in my user.config, adding <add key="SearchableFeatureGuidsToExclude" value="0cefbf18-56de-11dc-8f36-bac755d89593" />

Then I have rebuilt the search index.

Result:
As expected, "Products" does not compare anymore in drop-down feature list  of Search Page.
Nevertheless, Search result still shows the Web Store Product page among results.

Did I miss anything ?

6/22/2009 9:28:09 AM
Gravatar
Total Posts 18439

Re: Search Engine Improvements: permissions to list products in search results

Hi Diego,

The SearchableFeatureGuidsToExclude is really just for excluding it as a filter option in search, it probably could have been named better. If you want to remove it completely from search then you would also delete the file /Setup/ProviderConfig/indexbuilders/webstoreproductindexbuilder.config and then rebuild the search index.

Hope it helps,

Joe

6/26/2009 6:04:11 AM
Gravatar
Total Posts 149
Partner
mojoPortal Skinning, Custom Development and Support in Italy?
EffectiveWeb.it

Re: Search Engine Improvements: permissions to list products in search results

Hi Joe,

I tested the fix you sent me in the preview package and it works fine!
You can include it in next release.

Thank and regards.
Diego

6/26/2009 7:27:21 AM
Gravatar
Total Posts 18439

Re: Search Engine Improvements: permissions to list products in search results

Yes, this is now implemented in svn trunk to include module view permissions in the search index so we can filter accordingly.

I will be putting out a new release with this fix soon.

Best,

Joe 

You must sign in to post in the forums. This thread is closed to new posts.