<?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: Why is the modifier of a content a random user from the list of logged in users? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33762#M14290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jan.&lt;/P&gt;&lt;P&gt;It seems AuthenticationUtil.setFullyAuthenticatedUser() did the trick. So far testing hasn't resulted in the re-appearance of the bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 10:45:51 GMT</pubDate>
    <dc:creator>darkstar1</dc:creator>
    <dc:date>2017-03-10T10:45:51Z</dc:date>
    <item>
      <title>Why is the modifier of a content a random user from the list of logged in users?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33758#M14286</link>
      <description>I have a webscript:desc.xml -&amp;nbsp;&amp;lt;webscript&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;shortname&amp;gt;LibreOffice Online PutFile&amp;lt;/shortname&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;/wopi/files/{fileId}/contents&amp;lt;/url&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;family&amp;gt;LibreOffice Online&amp;lt;/family&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authentication&amp;gt;none&amp;lt;/authentication&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;format default="json</description>
      <pubDate>Wed, 01 Mar 2017 13:51:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33758#M14286</guid>
      <dc:creator>darkstar1</dc:creator>
      <dc:date>2017-03-01T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the modifier of a content a random user from the list of logged in users?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33759#M14287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does look a little odd - but would need to debug with the "auditable" behaviour with your test case, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of interest, do you see the same effect if you wrap with something like this instead ... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;/PRE&gt;&lt;SPAN style="color: #a9b7c6;"&gt;...&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;&lt;BR /&gt;retryingTransactionHelper&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;.doInTransaction(&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;RetryingTransactionCallback&amp;lt;Void&amp;gt;()&lt;BR /&gt;{&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;Void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;throws &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;Throwable&lt;BR /&gt; {&lt;BR /&gt; AuthenticationUtil.&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;pushAuthentication&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; try&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;{&lt;BR /&gt; AuthenticationUtil.&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;setRunAsUser&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;(tokenInfo.getUserName())&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; // ... do more here ...&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;&lt;BR /&gt; }&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;finally&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;{&lt;BR /&gt; AuthenticationUtil.&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;popAuthentication&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;return null;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;}&lt;BR /&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, false, true&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6;"&gt;...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:59:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33759#M14287</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-03-01T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the modifier of a content a random user from the list of logged in users?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33760#M14288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I was saying in our chat on Skype, I believe these links can help you with the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/160230"&gt;[solved] AuthenticationUtil.runAs: how to get ride of this ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/thread/194553-action-with-setrunasuser#comment-652744" title="https://community.alfresco.com/thread/194553-action-with-setrunasuser#comment-652744" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/thread/194553-action-with-setrunasuser#comment-652744&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use the AuthenticationUtil.setFullyAuthenticatedUser method with the user in the token.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 20:09:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33760#M14288</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-03-02T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the modifier of a content a random user from the list of logged in users?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33761#M14289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, yes as suggested by Douglas, that makes even more sense in your example, eg.&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; border: 0px; font-size: 9pt;"&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit;"&gt;try&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;BR /&gt;&amp;nbsp; AuthenticationUtil.&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;setFullyAuthenticatedUser&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;(tokenInfo.getUserName())&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&amp;nbsp; // ... do more here ...&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;finally&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;{&lt;BR /&gt;&amp;nbsp; AuthenticationUtil.clearCurrentSecurityContext&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;()&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; border: 0px; font-weight: inherit; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #a9b7c6; border: 0px; font-weight: inherit; font-size: 12px;"&gt;...&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 10:26:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33761#M14289</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2017-03-03T10:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is the modifier of a content a random user from the list of logged in users?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33762#M14290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jan.&lt;/P&gt;&lt;P&gt;It seems AuthenticationUtil.setFullyAuthenticatedUser() did the trick. So far testing hasn't resulted in the re-appearance of the bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 10:45:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/why-is-the-modifier-of-a-content-a-random-user-from-the-list-of/m-p/33762#M14290</guid>
      <dc:creator>darkstar1</dc:creator>
      <dc:date>2017-03-10T10:45:51Z</dc:date>
    </item>
  </channel>
</rss>

