<?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: Read Only Server Issue Adding Users in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252217#M205347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like Jeff said, you should not have to mess around with the read-write settings for the server.&amp;nbsp; If you run using an Enterprise release, then you'll need a valid license or the License code will put a veto in place to prevent general user actions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think (and I can only guess based on the info available) that you are attempting to perform a read-write operation during login, which is a read-only operation.&amp;nbsp; This is not a tricky transaction issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can &lt;/SPAN&gt;&lt;STRONG&gt;never&lt;/STRONG&gt;&lt;SPAN&gt; force a read-only transaction to morph into a read-write transaction.&amp;nbsp; Once you're in a read-only transaction that is what you have to work with.&amp;nbsp; If you need to be reactive based on user login, then you need to apply a transaction watch and fire a post-transaction process to do the read-write work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS.&amp;nbsp; It is really bad form to plug write operations into logical read operations.&amp;nbsp; It confuses people when get* actually modifies data, as an example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2012 10:22:20 GMT</pubDate>
    <dc:creator>derek</dc:creator>
    <dc:date>2012-04-02T10:22:20Z</dc:date>
    <item>
      <title>Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252214#M205344</link>
      <description>Hey guys,I posted the same question in an an old topic https://forums.alfresco.com/en/viewtopic.php?f=28&amp;amp;t=14004&amp;amp;start=15#p128586, but was advised to make a new one. I'm using 4.0d Community edition of Alfresco.I'm trying to create a user on the fly when a user logs in to the system. Here is</description>
      <pubDate>Fri, 30 Mar 2012 17:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252214#M205344</guid>
      <dc:creator>pshark</dc:creator>
      <dc:date>2012-03-30T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252215#M205345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've never seen Community Edition go into Read-Only mode. That typically only happens when someone is using the Enterprise Edition and the 30-day license expires. I can't help you with that, but I can tell you that the svn rev for 4.0.d is 33365. You can usually find that on the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/index.php?title=Alfresco_Community_4.0.d_Release_Notes" rel="nofollow noopener noreferrer"&gt;release notes&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 19:46:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252215#M205345</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-30T19:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252216#M205346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip about the revision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to import users with a csv after logging in. If I call the code within the RetryingTransactionHelper as follows: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;getTransactionService().getRetryingTransactionHelper().setForceWritable(true);&lt;BR /&gt;String normalized = getTransactionService().getRetryingTransactionHelper().doInTransaction(&lt;SPAN class="line-numbers-rows"&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;with doIntransaction parameter readonly set to false, the following error case is triggered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;throw new AlfrescoRuntimeException("Read-Write transaction started within read-only transaction");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Commenting out this error line in RetryingTransactionHelper only reverts back to a read only server error. Is there some way I can close the read only transaction, or is this normal behavior prior to a user logon :?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had also tried to run the transaction as the system user without success.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 22:35:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252216#M205346</guid>
      <dc:creator>pshark</dc:creator>
      <dc:date>2012-03-30T22:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252217#M205347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like Jeff said, you should not have to mess around with the read-write settings for the server.&amp;nbsp; If you run using an Enterprise release, then you'll need a valid license or the License code will put a veto in place to prevent general user actions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think (and I can only guess based on the info available) that you are attempting to perform a read-write operation during login, which is a read-only operation.&amp;nbsp; This is not a tricky transaction issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; You can &lt;/SPAN&gt;&lt;STRONG&gt;never&lt;/STRONG&gt;&lt;SPAN&gt; force a read-only transaction to morph into a read-write transaction.&amp;nbsp; Once you're in a read-only transaction that is what you have to work with.&amp;nbsp; If you need to be reactive based on user login, then you need to apply a transaction watch and fire a post-transaction process to do the read-write work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS.&amp;nbsp; It is really bad form to plug write operations into logical read operations.&amp;nbsp; It confuses people when get* actually modifies data, as an example.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 10:22:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252217#M205347</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2012-04-02T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252218#M205348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the informational response. I am seeking to create the user during the logon process, since there is another table which the users are actually being authenticated against.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there somewhere earlier in this process where I could complete a write transaction prior to logon?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also can you clarify what would be required to complete the following? I could not find any information about either transaction watches or what a post-transaction process is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you need to be reactive based on user login, then you need to apply a transaction watch and fire a post-transaction process to do the read-write work.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 17:36:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252218#M205348</guid>
      <dc:creator>pshark</dc:creator>
      <dc:date>2012-04-02T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252219#M205349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not clear what is going on here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Authenticating some principal that does not exists and auto-creating their credentials etc etc …..which does not make much sense to me&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Trying to auto-import users at authentication time?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Creating the person object in Alfresco as a side effect of authentication&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The person service already supports the auto-creation of people (on getPersons after login) if that is what you want&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Some combination of the above&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to import users write a bootstrap bean to check and do this at start up, and periodically.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should not do this as part of the authentication call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My guess is you need to take a look at the LDAP authentication sub-system and implement something like this for CSV??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or integrate with some external authenticaton system??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both mean writing your own authentication sub-system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 20:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252219#M205349</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-04-02T20:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read Only Server Issue Adding Users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252220#M205350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it is more a combination of 2-4. I was hoping to generate users on the fly based on an external authentication source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I'm writing my own authentication sub system, will that solve the read only issue? Should my code be running sooner in the execution chain?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 17:18:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-server-issue-adding-users/m-p/252220#M205350</guid>
      <dc:creator>pshark</dc:creator>
      <dc:date>2012-04-03T17:18:37Z</dc:date>
    </item>
  </channel>
</rss>

