Modify

Opened 12 years ago

Closed 12 years ago

#9507 closed defect (fixed)

Authentication for CollabNet Security Realm

Reported by: scott@… Owned by: roadrunner
Priority: normal Component: HudsonTracPlugin
Severity: normal Keywords: j_acegi_security_check
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

Here is the error even with the correct 'username' and 'password' in the trac.ini [hudson] section where the continuous integration machine is using CollabNet Security Realm:

Event provider HudsonTracPlugin failed for filters "Hudson Builds":

IOError: Error getting build info from 'http://localhost:8080/job/Build/api/python?tree=builds[building,timestamp,duration,result,description,url,fullDisplayName,changeSet[items[revision,id]]],modules[builds[building,timestamp,duration,result,description,url,fullDisplayName,changeSet[items[revision,id]]]]': returned document has unexpected type 'text/html' (expected 'text/x-python'). The returned text is: <html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fjob%2FBuild%2Fapi%2Fpython'/><script>window.location.replace('/login?from=%2Fjob%2FBuild%2Fapi%2Fpython');</script></head><body style='background-color:white; color:white;'>Authentication required</body></html>

Attachments (0)

Change History (3)

comment:1 Changed 12 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 12 years ago by roadrunner

I'm not familiar with the CollabNet security realm. But I'm guessing the the server is not returning a proper error status code - can you verify what http status code is being returned when you access the URL in the error message? (either snooping, or using something like lwp-request that can be told to show the response status code).

If you're running, or willing to upgrade to, Jenkins 1.426 or later, then I could add support for using the API Token approach (https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients) which I think might solve your issue.

comment:3 Changed 12 years ago by roadrunner

Resolution: fixed
Status: newclosed

(In [11432]) Add support for API Token introduced in Jenkins 1.426.

This closes #7340 and #9507.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roadrunner.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.