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

stevegreenbaum
Champ in-the-making
Champ in-the-making
In my experience with v3.3g, the preview reflects the latest changes to the document. There can be a delay in the update depending on how busy the server is.  In that case, when you refresh the page the new image appears.

mnemonic
Champ on-the-rise
Champ on-the-rise
This thing is driving me mad. I have the same issue with 3.3.g. I tried updating pdf2swf to 0.9.1, updating OpenOffice to 3.2.1, but nothing works. Uploading a new version of a file corresponds with the following error:
ERROR [org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=d8a248d7-8a1d-46b2-a06c-0bd1df6a9492, node=workspace://SpacesStore/d8a248d7-8a1d-46b2-a06c-0bd1df6a9492 ]
org.alfresco.repo.security.permissions.AccessDeniedException: 09030072 Access Denied.  You do not have the appropriate permissions to perform this operation.
    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:132)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy7.setProperties(Unknown Source)
    at org.alfresco.repo.action.ActionServiceImpl.saveActionProperties(ActionServiceImpl.java:911)
    at org.alfresco.repo.action.ActionServiceImpl.saveActionImpl(ActionServiceImpl.java:871)
    at org.alfresco.repo.action.ActionTrackingServiceImpl.recordActionComplete(ActionTrackingServiceImpl.java:142)
    at org.alfresco.repo.action.ActionTrackingServiceImpl.recordActionComplete(ActionTrackingServiceImpl.java:126)
    at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:678)
    at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:436)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:325)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:232)
    at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:445)
    at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:508)
    at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:448)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
    at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
    at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
    at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)

stevegreenbaum
Champ in-the-making
Champ in-the-making
If I understand correctly, you are able to upload the new version, but the thumbnail is not updated and the error message above appears in the log? 

I don't know what is causing this, but the error message "Access Denied.  You do not have the appropriate permissions to perform this operation."  should help.

I installed v3.4 today and in my installation I can upload a new version of a document and the preview shows the updated image.

mnemonic
Champ on-the-rise
Champ on-the-rise
I just found out that it works when I'm a member of the ALFRESCO_ADMINISTRATORS group, but I don't think this would be appropriate for other users  :wink:

mnemonic
Champ on-the-rise
Champ on-the-rise
I did a complete new install, but the problem remains  Smiley Sad Does anyone know why a modified document (new version) is only updated in the flash preview screen when the user is a member of ALFRESCO_AMINISTRATORS?  This does not work if the user is no member of ALFRESCO_ADMINISTRATORS, even if the user is a site administrator. It must be some permissions issue, but I was not able to find it sofar.

stevegreenbaum
Champ in-the-making
Champ in-the-making
If you create a document as a non-admin user and then update that document as a non-admin user, does it update the flash image?

loftux
Star Contributor
Star Contributor
I've seen this permissions denied error in 3.4.a as well.
If you copy the nodeRef in the errorlog, and search for it in the node browser, what kind of object is it?
Is it a ruleFolder, this was my case.
And this rule applies autoversioning. Maybe it interferes with renditions(thumbnailing), trying to set versioning on child objects besides the actual document?

Just speculating, have to do some more testing.

mnemonic
Champ on-the-rise
Champ on-the-rise
If you create a document as a non-admin user and then update that document as a non-admin user, does it update the flash image?

No, the flash image is not updated and the above error is generated.

mnemonic
Champ on-the-rise
Champ on-the-rise
I've seen this permissions denied error in 3.4.a as well.
If you copy the nodeRef in the errorlog, and search for it in the node browser, what kind of object is it?
Is it a ruleFolder, this was my case.
And this rule applies autoversioning. Maybe it interferes with renditions(thumbnailing), trying to set versioning on child objects besides the actual document?

Just speculating, have to do some more testing.

I took some screenshots of the nodebrowser:

[img]http://www1.lauwerscollege.nl/temp/screenshot16.png[/img]
[img]http://www1.lauwerscollege.nl/temp/screenshot17.png[/img]

I hope it makes any sense to you, because to me it doesn't  :wink: