JSONJenkins needs to perform preemptive basic auth

Bug #1596590 reported by Free Ekanayaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jenkins-launchpad-plugin
New
Undecided
Unassigned

Bug Description

Since Jenkins doesn't return Unauthorize (401) but Forbidden (403) when hitting an URL that requires authentication, the JSONJenkins.get_json_data traces back the /api/json endpoint requires a password or a token.

See also:

https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients

I'm attaching a sketch of the fix for reference (it worked for me).

Revision history for this message
Free Ekanayaka (free.ekanayaka) wrote :
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.