<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic node permissions not respected for search in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/node-permissions-not-respected-for-search/m-p/309654#M262784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a webscript that does a search query like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;params.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);&lt;BR /&gt;params.setQuery("a simple lucene query");&lt;BR /&gt;ResultSet result = this.searchService.query(params);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The search works great except that it does not respect the persmissions of the respective user. It returns items the user is not allowed to see. The description of the webscript is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;Search the repository&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;url&amp;gt;/myPackage/search&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;transaction&amp;gt;none&amp;lt;/transaction&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the SOAP API which uses pretty much the same call&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;StoreRef storeRef = Utils.convertToStoreRef(store);&lt;BR /&gt;searchResults = searchService.query(storeRef, query.getLanguage(), statement);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;There the permissions are checked. So this should not be a configuration issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I make the webscript respect the users' persmissions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 09:47:57 GMT</pubDate>
    <dc:creator>tim-erwin</dc:creator>
    <dc:date>2014-10-27T09:47:57Z</dc:date>
    <item>
      <title>node permissions not respected for search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-permissions-not-respected-for-search/m-p/309654#M262784</link>
      <description>I have a webscript that does a search query like so&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;arams.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);params.setQuery("a simple lucene query");ResultSet result = this.searchService.query(params);‍‍‍‍‍The search works great except that it does not respect the persmissions of the respective us</description>
      <pubDate>Mon, 27 Oct 2014 09:47:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-permissions-not-respected-for-search/m-p/309654#M262784</guid>
      <dc:creator>tim-erwin</dc:creator>
      <dc:date>2014-10-27T09:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: node permissions not respected for search</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/node-permissions-not-respected-for-search/m-p/309655#M262785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you have a Java-backed web script, please keep in mind to always configure it using public service beans (e.g. beans called "SearchService" / "NodeService" with an upper-cased initial letter) in your Spring configuration XML files. Only those service beans will have the security mechanism attached while the private service beans (lower-cased initial letter) are the actual implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 12:00:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/node-permissions-not-respected-for-search/m-p/309655#M262785</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-10-27T12:00:38Z</dc:date>
    </item>
  </channel>
</rss>

