release.files missing on API
Bug #636420 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Curtis Hovey |
Bug Description
There is no security checker to view an IProductReleaseFile so the files are not available over the API. security.py needs something like:
class ViewProductRele
"""Anyone can view an IProductRelease
usedfor = IProductReleaseFile
Related branches
lp:~sinzui/launchpad/file-api-0
- Aaron Bentley (community): Approve
-
Diff: 52 lines (+15/-2)2 files modifiedlib/canonical/launchpad/security.py (+5/-0)
lib/lp/registry/stories/webservice/xx-project-registry.txt (+10/-2)
Changed in launchpad-registry: | |
assignee: | nobody → Curtis Hovey (sinzui) |
status: | Triaged → In Progress |
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
tags: | added: qa-ok |
tags: |
added: qa-ok removed: qa-needstesting |
tags: |
added: qa-needstesting removed: qa-ok |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Let me clarify that any logged in user can access the ProductReleaseFile over the API, but anonymous users cannot. Anonymous users can access the file over the web because the page is providing the information.