Errore "Access Denied" con Scheduled Report
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:
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.