<?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: Webscripts: Using in read only mode in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscripts-using-in-read-only-mode/m-p/147776#M39107</link>
    <description>&lt;P&gt;Thank you for your response. But I don't know how to change my webscript.&amp;nbsp;I thing it should not write anything ...&lt;/P&gt;&lt;P&gt;I want to read a content of one concrete file:&lt;/P&gt;&lt;PRE&gt;model.dataString="\"crash\"";
 
function main(){
  var referenceType = "path";
  var reference = ["workspace", "SpacesStore", "Company Home","testAccessFile.txt"];
  var foundNode = search.findNode(referenceType, reference);
  if(foundNode!=null)  model.dataString="\""+foundNode.content+"\"";
}

main();&lt;/PRE&gt;&lt;P&gt;When alfresco is in read-only mode this script responds with a status of 500 and &lt;SPAN&gt;Access denied error&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 09:20:44 GMT</pubDate>
    <dc:creator>del007</dc:creator>
    <dc:date>2024-05-31T09:20:44Z</dc:date>
    <item>
      <title>Webscripts: Using in read only mode</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts-using-in-read-only-mode/m-p/147775#M39106</link>
      <description>&lt;P&gt;I would like to ask if is it possible to use webscripts when alfresco (version 6.1) is in read-only mode?&lt;/P&gt;&lt;P&gt;I have webscipts (js) for document search and read. When alfresco is in read-only mode they doesn't work - I get a response "04150000 &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Access denied.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The system is currently in read-only mode.&lt;/SPAN&gt;&lt;/SPAN&gt;" Is it possible to make it wokring? My webscripts doesn't write any data to alfresco ...&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 07:45:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts-using-in-read-only-mode/m-p/147775#M39106</guid>
      <dc:creator>del007</dc:creator>
      <dc:date>2024-05-15T07:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Webscripts: Using in read only mode</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscripts-using-in-read-only-mode/m-p/147776#M39107</link>
      <description>&lt;P&gt;Thank you for your response. But I don't know how to change my webscript.&amp;nbsp;I thing it should not write anything ...&lt;/P&gt;&lt;P&gt;I want to read a content of one concrete file:&lt;/P&gt;&lt;PRE&gt;model.dataString="\"crash\"";
 
function main(){
  var referenceType = "path";
  var reference = ["workspace", "SpacesStore", "Company Home","testAccessFile.txt"];
  var foundNode = search.findNode(referenceType, reference);
  if(foundNode!=null)  model.dataString="\""+foundNode.content+"\"";
}

main();&lt;/PRE&gt;&lt;P&gt;When alfresco is in read-only mode this script responds with a status of 500 and &lt;SPAN&gt;Access denied error&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:20:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscripts-using-in-read-only-mode/m-p/147776#M39107</guid>
      <dc:creator>del007</dc:creator>
      <dc:date>2024-05-31T09:20:44Z</dc:date>
    </item>
  </channel>
</rss>

