-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.7.1
-
Component/s: Birt Reporting (deprecated)
When viewing a report instance, we access also the related report model. Only administrators can access the models, so we end up by returning null in the BirtReportInstance class:
public ReportModel getModel() throws ClientException { String modelUUID = (String) doc.getPropertyValue(PREFIX + ":modelRef"); IdRef modelRef = new IdRef(modelUUID); ----> if (!getSession().exists(modelRef)) { // !!! return null; } DocumentModel model = getSession().getDocument(modelRef); return model.getAdapter(ReportModel.class); }
The reports model should be retrieved in an unrestricted session, and then detached.