named posts which result in resource url change raise a 404
Bug #1056546 reported by
Ian Booth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
Critical
|
Ian Booth |
Bug Description
When a named post is performed on a resource, the operation may cause the resource's url to change. After the named post completes, the calling code attempts to perform a lp_refresh() to get the new state of the resource but this fails because the resource can no longer be found at the original url, and a 404 is raised.
Related branches
lp:~wallyworld/lazr.restfulclient/named-post-url-change-1056546
- Curtis Hovey (community): Approve (code)
-
Diff: 80 lines (+28/-4)5 files modifiedsrc/lazr/restfulclient/NEWS.txt (+6/-0)
src/lazr/restfulclient/docs/operations.txt (+13/-0)
src/lazr/restfulclient/resource.py (+7/-2)
src/lazr/restfulclient/version.txt (+1/-1)
versions.cfg (+1/-1)
Changed in lazr.restfulclient: | |
importance: | High → Critical |
Changed in lazr.restfulclient: | |
status: | In Progress → Fix Released |
To post a comment you must log in.