Authorization message uses stdout instead of stderr
Bug #2049656 reported by
Agathe Porte
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpadlib |
Expired
|
Undecided
|
Unassigned |
Bug Description
When using the library, on first login, the authorization message will be displayed on stdout for the user to allow the application to access Launchpad by opening the link.
This pollutes stdout and prevents shell scripts from parsing the output of programs using launchpadlib, because stdout may get polluted on first use:
# On first run, this may return the whole authorization message before the actual value
myvar=$
# On second run, only the value we are interested in will be returned
myvar=$
Proposed solution is to use stderr instead, which will prevent this kind of failure.
To post a comment you must log in.
Thanks for the report.
Could you please paste the redacted output so it is easier to reason about your request?
launchpadlib is heavily used and integrated into many applications. I am worried that this kind of change might break other applications - for the better or worse.