Webscripts: Using in read only mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 03:45 AM
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
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 05:20 AM
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.
