HostedFiles: need url for viewing file content online

Bug #424666 reported by Bryce Harrington on 2009-09-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
Undecided
Unassigned

Bug Description

In Launchpad, you can access a file attachment via a launchpad librarian URL. For instance:

  http://launchpadlibrarian.net/30939908/BootDmesg.txt

However, from the bug object itself, it doesn't appear possible to determine this URL. Here's the info I can access:

title: BootDmesg.txt
subject: Re: xorg eats up all my CPU
filename: BootDmesg.txt
owner: Nicolò Chieffo
created: 2009-08-28 15:38:32.527415+00:00
modified: Fri, 28 Aug 2009 16:38:32 GMT
ispatch: Unspecified
http_etag: "d885865de3b9064125e67063e1eb99a8d20c026b"
content-type: text/plain; charset="utf-8"
a.url: https://api.edge.launchpad.net/beta/bugs/420600/+attachment/686514
fb.url: https://api.edge.launchpad.net/beta/bugs/420600/+attachment/686514/data
data.params: []
data.wadl: <wadllib.application.Resource object at 0x30e0dd0>
isatty: False
len: 53176
mode: r
pos: 0
softspace: 0

Most notably, the fb.url object seems to not work, even if I try permutations such as:

  https://bugs.edge.launchpad.net/bugs/420600/+attachment/686514/data

It would be helpful either to have a way to determine the launchpadlibrarian.net url, or for the filebuffer url attribute to point to something that can be viewed in the web browser.

Bryce Harrington (bryce) on 2009-09-05
summary: - attachments: need url for viewing file content online
+ HostedFiles: need url for viewing file content online
Bryce Harrington (bryce) on 2009-12-17
tags: added: patch-tracking story-patch-report ui
Gary Poster (gary) wrote :

Bryce, I expect you know that the fb.url (https://api.edge.launchpad.net/beta/bugs/420600/+attachment/686514/data in your example) redirects to the launchpadlibrarian URL. I don't understand your use case enough to see why that is insufficient. Could you explain?

Thank you

Changed in launchpadlib:
status: New → Incomplete
Bryce Harrington (bryce) wrote :

Alright, I think I can make that approach work after all, thanks.

Changed in launchpadlib:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers