Activity log for bug #821366

Date Who What changed Old value New value Message
2011-08-05 09:28:03 Jonathan Lange bug added bug
2011-08-05 09:33:56 Julian Edwards summary No API for telling if someone can upload to PPA IArchive.checkUpload() requires existing sourcepackagename
2011-08-05 09:34:14 Julian Edwards launchpad: status New Triaged
2011-08-05 09:34:17 Julian Edwards launchpad: importance Undecided High
2011-08-05 09:35:10 Julian Edwards tags api ppa
2011-08-05 09:44:43 Jonathan Lange description There's no API for telling if someone can upload to a particular PPA. There are two APIs that look like they might be appropriate: IArchive.isSourceUploadAllowed and IArchive.checkUpload, but they provide strange results. {{{ >>> ppa.checkUpload(person=me, distroseries=ubuntu.current_series, sourcepackagename='hello', component='main', pocket='Release') True >>> ppa.checkUpload(person=me, distroseries=ubuntu.current_series, sourcepackagename='whatever', component='main', pocket='Release') Traceback (most recent call last): ... NotFound: HTTP Error 404: Not Found Response headers: --- ... status: 404 ... --- Response body: --- No such source package: 'whatever'. --- }}} isSourceUploadAllowed() says False for me uploading 'hello' to my own PPA and raises the same error for 'whatever'. Exacerbated by bug 814725. If there were a way of actually getting feedback on upload, then we could just try & get the failure. There's no API for telling if someone can upload to a particular PPA. One API that looks like it might be appropriate is IArchive.checkUpload, but that doesn't work for new source packages. {{{ >>> ppa.checkUpload(person=me, distroseries=ubuntu.current_series, sourcepackagename='hello', component='main', pocket='Release') True >>> ppa.checkUpload(person=me, distroseries=ubuntu.current_series, sourcepackagename='whatever', component='main', pocket='Release') Traceback (most recent call last): ... NotFound: HTTP Error 404: Not Found Response headers: --- ... status: 404 ... --- Response body: --- No such source package: 'whatever'. --- }}} Exacerbated by bug 814725. If there were a way of actually getting feedback on upload, then we could just try & get the failure.