[JIRA] (JENKINS-58626) the response code of "Authentication required" should be 401

10 views
Skip to first unread message

niwei_forever@sina.com (JIRA)

unread,
Jul 23, 2019, 11:29:02 PM7/23/19
to jenkinsc...@googlegroups.com
Davy Ni created an issue
 
Jenkins / Bug JENKINS-58626
the response code of "Authentication required" should be 401
Issue Type: Bug Bug
Assignee: Kseniia Nenasheva
Components: security-inspector-plugin
Created: 2019-07-24 03:28
Priority: Minor Minor
Reporter: Davy Ni

When a jenkins api is called without authentication info, jenkins return 403 error code. According to RFC 2616, jenkins should return 401.

This bug makes my Jira webhook not working.  My Jira webhook is created this:    http://username:pass...@jenkins.xxxxx.com/view/ci-megalodon-master/job/provision2/buildWithParameters.   Jira first call this webhook without authentication info, if webhook return 401, Jira will then call webwook with authentication info. But as jenkins return 403, the Jira webhook just failed.

 

Reference about 401 &403:

https://tools.ietf.org/html/rfc2616#section-10.4.2

http://www.dirv.me/blog/2011/07/18/understanding-403-forbidden/index.html

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

niwei_forever@sina.com (JIRA)

unread,
Jul 23, 2019, 11:48:02 PM7/23/19
to jenkinsc...@googlegroups.com
Davy Ni updated an issue
Change By: Davy Ni
When a jenkins api is called without authentication info, jenkins return 403 error code. According to RFC 2616, jenkins should return 401.

 

This bug makes my Jira webhook not working.  

Jira first call this webhook without authentication info, if webhook return 401, Jira will then call webwook with authentication info.

But as jenkins return 403, the Jira webhook just failed.

 

Reference about 401 &403:

[https://tools.ietf.org/html/rfc2616#section-10.4.2]

[http://www.dirv.me/blog/2011/07/18/understanding-403-forbidden/index.html]

 

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 24, 2019, 2:31:02 PM7/24/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Component/s: core
Component/s: security-inspector-plugin

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 24, 2019, 2:31:03 PM7/24/19
to jenkinsc...@googlegroups.com
Oleg Nenashev assigned an issue to Unassigned
Change By: Oleg Nenashev
Assignee: Kseniia Nenasheva

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 24, 2019, 2:31:03 PM7/24/19
to jenkinsc...@googlegroups.com

dbeck@cloudbees.com (JIRA)

unread,
Aug 9, 2019, 4:33:03 AM8/9/19
to jenkinsc...@googlegroups.com
Daniel Beck closed an issue as Won't Fix
 

We will probably never address this as it breaks too much other stuff.

Do the equivalent of wget --auth-no-challenge and send the auth headers early.

Change By: Daniel Beck
Status: Open Closed
Resolution: Won't Fix
Reply all
Reply to author
Forward
0 new messages