Librarian-backed HostedFile objects do not expose hash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Michael Nelson |
Bug Description
Here's some code from lib/lp/
As far as I can see, it's not possible to do a like-for-like replacement of this, because the HostedFile objects that you get on webservice clients if you export something as Bytes() don't expose LibraryFileCont
It would be great if HostedFile objects (not HostedFileBuffer - constructing those requires downloading the value) exported the SHA-1 so that I could write a direct equivalent of the code above.
Related branches
- William Grant: Approve (code)
- Launchpad code reviewers: Pending requested
-
Diff: 218 lines (+102/-37)4 files modifiedlib/lp/soyuz/browser/tests/test_publishing_webservice.py (+40/-7)
lib/lp/soyuz/interfaces/publishing.py (+5/-1)
lib/lp/soyuz/model/publishing.py (+8/-1)
lib/lp/soyuz/tests/test_publishing_models.py (+49/-28)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: soyuz-build |
summary: |
- Librarian-backed HostedFile objects do not expose SHA-1 hash + Librarian-backed HostedFile objects do not expose hash |
Changed in launchpad: | |
status: | Triaged → In Progress |
assignee: | nobody → Michael Nelson (michael.nelson) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
Fixed in stable r16515 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 16515>.