Anonymous API requests are not shown any bug activity
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
Low
|
William Grant | ||
Bug Description
I am trying to automate following up bugs activity, and when trying to retrieve activity for a bug, the api seems to return an empty set:
https:/
For example here, this is the output:
{"total_size": 16, "start": 0, "entries": [], "resource_
I was expecting to see the 16 entries on the entry set. Is there a different place to retrieve the activity from and I am reading this wrongly?
Analysis
========
The API strips out inaccessible entries from collections, which is why the entries are empty in this case - they are all considered inaccessible to anonymous requests.
Related branches
- Colin Watson: Approve on 2016-04-14
-
Diff: 97 lines (+24/-3)4 files modifiedlib/lp/bugs/security.py (+14/-0)
lib/lp/bugs/stories/webservice/xx-bug.txt (+3/-1)
lib/lp/registry/stories/webservice/xx-person.txt (+2/-2)
lib/lp/security.py (+5/-0)
| summary: |
- Launchpad API doesn't return bug activity + Anonymous API requests are not shown any bug activity |
| Changed in launchpad: | |
| status: | Confirmed → Triaged |
| importance: | Undecided → Low |
| description: | updated |
| tags: | added: api bughistory bugs |
| tags: | added: trivial |
| Changed in launchpad: | |
| assignee: | nobody → Bayard 'kit' Randel (blr) |
| Changed in launchpad: | |
| assignee: | Kit Randel (blr) → nobody |
| Changed in launchpad: | |
| assignee: | nobody → William Grant (wgrant) |
| status: | Triaged → In Progress |
| Launchpad QA Bot (lpqabot) wrote : | #2 |
Fixed in stable r17998 <http://
| tags: | added: qa-needstesting |
| Changed in launchpad: | |
| status: | In Progress → Fix Committed |
| tags: |
added: qa-ok removed: qa-needstesting |
| Changed in launchpad: | |
| status: | Fix Committed → Fix Released |
Awesome! Works for me. Thanks William!

Status changed to 'Confirmed' because the bug affects multiple users.