[#8501] - Deleting resource via rest v2 fails with success code

Category:
Bug report
Priority:
Normal
Status:
New
Project: Severity:
Major
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

We have a large scale rails application that accesses jasper server using the rest api.

calls to delete resource return code 204 without deleting the resource

Some code run in rails console
file = files['resourceLookup'].last
=> {"version"=>0, "permissionMask"=>30, "creationDate"=>"2016-08-31T10:51:19", "updateDate"=>"2016-08-31T10:51:19", "label"=>"ReadingsonNewServer-18-sn-PK2CkFCs-201608311050.pdf", "uri"=>"/user_scheduled_reports/18e5ef7051d1013425a720cec80244de/ReadingsonNewServer-18-sn-PK2CkFCs-201608311050.pdf", "resourceType"=>"file"}
1.9.3-p550 :006 > resource_path = file['uri']
=> "/user_scheduled_reports/18e5ef7051d1013425a720cec80244de/ReadingsonNewServer-18-sn-PK2CkFCs-201608311050.pdf"
1.9.3-p550 :007 > code = JasperRestApi.delete_resource(resource_path)
=> 204

Server Info
{"dateFormatPattern"=>"yyyy-MM-dd", "datetimeFormatPattern"=>"yyyy-MM-dd'T'HH:mm:ss", "version"=>"6.2.1", "edition"=>"CE", "build"=>"BUILD_DATE_STAMP_BUILD_TIME_STAMP"}

we have about 10K users and it is important for them to be able to police their own files because it would be too much for us to manually do it for them.

We have an older server running 4.7 that this function is NOT broken on using soap interface.

v6.2.1
rest api v2
rossi_jeff's picture
Joined: Nov 2 2010 - 8:27am
Last seen: 4 years 8 months ago
Feedback
randomness