Webscripts: Using in read only mode

cancel
Showing results for 
Search instead for 
Did you mean: 
del007
Active Member II

Webscripts: Using in read only mode

I would like to ask if is it possible to use webscripts when alfresco (version 6.1) is in read-only mode?

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 Access denied. The system is currently in read-only mode." Is it possible to make it wokring? My webscripts doesn't write any data to alfresco ...

Thank you

1 Reply
del007
Active Member II

Re: Webscripts: Using in read only mode

Thank you for your response. But I don't know how to change my webscript. I thing it should not write anything ...

I want to read a content of one concrete file:

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();

When alfresco is in read-only mode this script responds with a status of 500 and Access denied error