cancel
Showing results for 
Search instead for 
Did you mean: 

Offline editing not working in 5.0.d.

statira
Confirmed Champ
Confirmed Champ
Edit offline not working in version 5.0.d even in default configuration. When I try to edit a document offline Alfresco locks it as usual but when I click download button I get http 500 error. If I just download a document without locking it everything is ok. What can cause it?
2 REPLIES 2

adanecki
Champ in-the-making
Champ in-the-making
I have also the same issue in alfresco 5.0.4.
In chrome and FF offline edit wokrs fine, in IE8, IE9 and IE11 there is HTTP 500 error, when we use offline edit option to download file. Normal download, by "Download"button works fine in every browser.


For example link to retrieve test.docx file after clicking Offline Edit, looks like this:

https://alfresco:8443/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/d689f416-224..." target="_blank

When I paste this link to Chrome and firefox, file is downloaded without any problems,
but in IE I get 500 error.
But if I remove " signs from this URL, IE is able to download file

So final link for IE should look like this
https://alfresco:8443/share/proxy/alfresco/slingshot/node/content/workspace/SpacesStore/d689f416-224... target=_blank

without " signs

How can this be solved

Best Regards
Adam

adanecki
Champ in-the-making
Champ in-the-making
/opt/alfresco-5.0.d/tomcat/webapps/share/components/documentlibrary/actions.js
correct value:
"
getActionUrls: function dlA_getActionUrls(record, siteId)
    …
   downloadUrl: $combine(Alfresco.constants.PROXY_URI, contentUrl) + "?a=true",
"

in 5.0.d there was
downloadUrl: $combine(Alfresco.constants.PROXY_URI, contentUrl) + "?a=true" + "\" target=\"_blank",

Problem was with "\" target=\"_blank" which is not recognized correctly by IE

Other lines with ' "\" target=\"_blank" in getActionUrls should be also corrected.
There is also actions-min.js in the same directory, but i'm not sure if it used, so modified locally also.

After changes Edit Offline works fine.