Modify

Opened 3 years ago

Closed 3 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 rjollos)

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 3 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 3 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 3 years ago by roadrunner

  • Resolution set to fixed
  • Status changed from new to closed

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

This closes #7340 and #9507.

Add Comment

Modify Ticket

Action
as closed The owner will remain roadrunner.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.