Fails to notice download error

Bug #1233539 reported by Jeroen T. Vermeulen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
simplestreams
New
Undecided
Unassigned

Bug Description

We were trying to sync a simplestreams stream into a local ObjectStoreMirrorWriter from behind a proxy that returns a 403 (Forbidden).

Looks like the failure wasn't noticed until our "policy" function tried to verify the signature on the index:

    return util.read_signed(content, keyring=args.keyring)

File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 283, in read_signed
    raise SignatureMissingException("No signature found!")
simplestreams.util.SignatureMissingException: No signature found!

We would have expected an exception at the point where the download fails, where it's easier to debug. Instead, ObjectStoreMirrorWriter.sync() continued and handed the error page into the policy function.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.