<?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 Re: Require valid SecureContext when executing public APIs? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262682#M215812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried executing your code using "AuthenticationUtil.runAs()" ? a code snippet could help us understand the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 14:06:37 GMT</pubDate>
    <dc:creator>hsohaib</dc:creator>
    <dc:date>2010-11-29T14:06:37Z</dc:date>
    <item>
      <title>Require valid SecureContext when executing public APIs?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262681#M215811</link>
      <description>Hi,I have a servlet filter which is accessing the public NodeService API, using the preferred method of bean injection in 3.2 community edition with the Records Management module installed.&amp;nbsp; However, when using the public API an exception is thrown (see below) - net.sf.acegisecurity.AuthenticationCr</description>
      <pubDate>Sat, 27 Nov 2010 17:36:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262681#M215811</guid>
      <dc:creator>gjferrier</dc:creator>
      <dc:date>2010-11-27T17:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Require valid SecureContext when executing public APIs?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262682#M215812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried executing your code using "AuthenticationUtil.runAs()" ? a code snippet could help us understand the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 14:06:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262682#M215812</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-11-29T14:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Require valid SecureContext when executing public APIs?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262683#M215813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried executing your code using "AuthenticationUtil.runAs()" ? a code snippet could help us understand the problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;No, I haven't.&amp;nbsp; Although that doesn't feel like the right approach, I want the code to run as the current user.&amp;nbsp; For info my filter is installed as the final filter in the chain.&amp;nbsp; Here's a cut down snippet of the code - &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain filterChain)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throws IOException, ServletException {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filterChain.doFilter(request, response);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NodeRef ref = // parse the noderef from the request object.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // spring bean injected field using 'NodeService' from public-services-context.xml&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (nodeService.exists(ref)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something else&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&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;/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 16:30:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/require-valid-securecontext-when-executing-public-apis/m-p/262683#M215813</guid>
      <dc:creator>gjferrier</dc:creator>
      <dc:date>2010-11-29T16:30:19Z</dc:date>
    </item>
  </channel>
</rss>

