Errore "Access Denied" con Scheduled Report

From RVM Wiki
Jump to navigation Jump to search

Se si tenta di eseguire un Report Schedulato, che invece viene eseguito normalmente interattivamente, e si riceve l'errore (in messages):

00:01:46,158 ERROR ReportExecutionJob,JasperServerScheduler_Worker-1:186 - org.acegisecurity.AccessDeniedException: Access is denied
org.acegisecurity.AccessDeniedException: Access is denied
 

Fix sulle permission

Impostare come Permission sulla cartella reports, by User

Tomcat/Readonly

Verificare inoltre che Tomcat possa scrivere nella "Reports_Batch" con la medesima procedura.

Fix con Patch

Precedentemente si diceva, ma la precedente procedura lo rende inutile:

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&catid=10&id=25290#25290

We've identified the cause. This bug manifests when you set the "Overwrite Files" flag for a report job. The bug has been fixed after 1.2.1 was released.

Workarounds:

  • If you don't actually need to set "Overwrite Files", don't.
  • Apply the attached patch either by unpacking it into WEB-INF/classes or by copying it to WEB-INF/lib.

http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/0jasperserver_api_metadata_impl_1.jar

Riferimenti