cancel
Showing results for 
Search instead for 
Did you mean: 

Document not updated in flash viewer

mnemonic
Champ on-the-rise
Champ on-the-rise
The flash viewer (document details) only shows me the initial version (version 1.0) of a document (no matter what). When I upload a new version of the document, the flash viewer still shows the 1.0 version. I only can see the differences when viewing the document with the appropriate local application (OpenOffice/PDF viewer, etc.). I don't know if this is a bug, a feature  :wink: of a configuration issue. Anyone with an idea/hint?

fyi: running Alfresco 3.4.a on a 64-bit ubuntu 10.04 server (swftools 0.9.0)
21 REPLIES 21

loftux
Star Contributor
Star Contributor
There is a new Rendering Actions Space in Data Dictionary, and this node is a subnode to that space (childs are only visible in node browser from what I can tell).

Now there is Consumer rights to EVERYONE. I dont know if this is enough, or that more priviliged rights is expected. And it may very well be some other node that is the actuall cause.

mnemonic
Champ on-the-rise
Champ on-the-rise
Found it!.. Setting appropiate (user) permissions on the rendering_action_space does the trick. The default permissions on the rendering_action_space is everyone:consumer, which was not enough

loftux
Star Contributor
Star Contributor
Thats good news. What space permissions did you add?

Also, can you file a case in http://issues.alfresco.com, paste a reference to this thread. I think it is really important that someone who knows what permission should be sufficient review this, an possibly patch it.

neilm
Champ in-the-making
Champ in-the-making
Hi all,

There is a JIRA that looks like the issue you're all discussing: http://issues.alfresco.com/jira/browse/ALF-3262.

Changing permissions on the Rendering Actions Space may fix things, but it is not something you should need to do.
If the previews don't keep updating with new versions of content, then it's a bug. I'm working on it.

Watch ALF-3262 for updates. And thanks for the forum posts - you've given me some useful information for fixing this issue.

mnemonic
Champ on-the-rise
Champ on-the-rise
Thats good news. What space permissions did you add?

Also, can you file a case in http://issues.alfresco.com, paste a reference to this thread. I think it is really important that someone who knows what permission should be sufficient review this, an possibly patch it.

First I tried it with a specific user, which I gave collaborator permissions. This works. As a more general "solution" I unticked "inherit parent permissions"  and put a new permission on EVERYONE, i.e. when you give EVERYONE the role coordinator, collaborator or editor this problem doesn't occur. The roles consumer and contributor don't work.

Tnx all for the replies

neilm
Champ in-the-making
Champ in-the-making
For those of you that can't be bothered to go to JIRA Smiley Wink , I'll tell you here that I have found the cause of this issue. It's the ActionTrackingService (introduced in Alfresco 3.4).
Do I understand all your comments correctly? This issue is only seen on 3.4? Not on 3.3? I certainly can't reproduce it on 3.3, but can on 3.4.

So FYI, the update of the doclib/webpreview thumbnails is a 'rendition', which is an extension of an action. This action is executed asynchronously in the background in order to regenerate the thumbnails for a doc when a new version is uploaded. This worked fine in 3.3, but with the addition of the ActionTrackingService in 3.4, persisted asynchronous actions (which includes renditions) have their completion status written to the DB. You can see this in the NodeBrowser screenshot further up this thread.
But rendition definitions are all located in Data Dictionary/Rendering Actions Space which non-admin users are not supposed to see.

So the fix here is NOT to relax permissions on that folder - it's an important system folder that needs to be kept private from most users.
The fix is to have the action persistence run as the 'system' user rather than the logged in user. That's something that requires a little coding in the ActionTrackingService and a rebuild of Alfresco, I'm afraid.

The fix is coming soon for this issue and should in in 3.4.b.

mnemonic
Champ on-the-rise
Champ on-the-rise
A fix is coming soon for this issue and should in in 3.4.b.

Tnx! I looking forward for it.

richard_davies
Champ in-the-making
Champ in-the-making
I'm quite new to this, and so possible I don't really understand the solution here. I am using the very latest version – 3.4D - just downloaded and installed it last week; but I have the same problem –> web preview only shows Version 1.0 of the document, no matter how many times I update (making changes in CIFS or uploading via share).

I have set-up all documents as versionable using the <mandatory-aspects> idea show in the Community Edition 3.3 Installing and Configuring Alfresco document. As such, if I open a document from CIFS (i.e. double clicking on an XLS spreadsheet say) make a change and then save, I get a new version [actually often I get 2 new versions, but I realise that is a CIFS problem, not a preview problem]).

The document is updated in Share (e.g. if I download the file in share or from CIFS) - but the preview remains the same.

I've tried this logged in a user, or as admin… no difference.

I also have tried changing the permissions on the Data Dictionary > Rendering Actions Space and changed the permissions from 'Inherited' (everyone = consumer) to 'not inherited' and then setting everyone = collaborator or editor… but it did not resolve the problem.

FYI - this problem occurs for office files and PDFs; but I just noticed before sending this that there is not a problem for image files (e.g. jpg).

swiggy
Champ in-the-making
Champ in-the-making
Hello,
Same here with 3.4d community. The bug isn't fixed, preview ok for admin but don't work for users…

mactheknife
Champ in-the-making
Champ in-the-making
Just wanted to add a +1 for this issue in 3.4d !

Caused by: org.alfresco.scripts.ScriptException: 05010287 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 05010286 Access Denied.  You do not have the appropriate permissions to perform this operation.