Search code examples
jasper-reportsjasperserver

the path of the report does not change after changing the name of the folder in jasperServer


I have a folder (cat1) in jasperServer which contains some reports. After changing the name of the folder using the web interface to category1, the paths of reports which are inside this folder does not change. For example, report1 still has the path /reports/cat1/report1 and not /reports/category1/report1

How to solve this issue ?


Solution

  • I solved the issue by moving the resource as proposed in jasperServer rest client API.

    OperationResult<ClientResource> result = client
            .authenticate("jasperadmin", "jasperadmin")
            .resourcesService()
            .resource("/reports/category1/report1")
            .moveFrom("/reports/cat1/report1");