Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 18/Dec/14 3:11 AM
Description:

While accessing jenkins, especially through it's various api's that are available. While accessing a jenkins server through the FQDN and querying a queue item, possibly other items but I havn't the time to check, the forwarding address of the queue item to the build is not the same address of the FQDN address used to query the build item.
example

$ curl -i -X POST  http://jenkins.example.com/job/Blank_Job/buildWithParameters --user $username:$password
HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Location: http://jenkins.example.com/queue/item/336/
Content-Length: 0
Date: Thu, 18 Dec 2014 03:03:40 GMT

$ curl -X POST   http://jenkins.example.com/queue/item/336/api/xml --user $username:$password | grep -i '<executable>.*</executable>' --color -o
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   992  100   992    0     0   2278      0 --:--:-- --:--:-- --:--:--  2517
<executable><number>487</number><url>http://jenkins/job/Blank_Job/487/</url></executable>

This issue will most likely cause issues with many of the api's who will attempt to get the queue item with this url when the shortened url will fail them depending on how their network is setup. There should be a way to either populate this depending on how the url was accessed or a variable which is set in tomcat somewhere.

Environment: Jenkins with fqdn
Project: Jenkins
Priority: Blocker Blocker
Reporter: Russell Weber
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to