[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-19 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















That is the problem.  I created a new job and I can see data when I call the API:
PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/TestApi/api/xml
freeStyleProjectdescription/descriptiondisplayNameTestApi/displayNamenameTestApi/nameurlhttp://171.206.60.154:8080/job/TestApi//urlbuildabletrue/buildablecolornotbuilt/colorinQueuefalse/inQueuekeepDependenciesfalse/keepDepende
nciesnextBuildNumber1/nextBuildNumberproperty/propertyconcurrentBuildfalse/concurrentBuildscm/scm/freeStyleProject

What do I have to do to see the other jobs?



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-19 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















It is a security issue.  When I set Anonymous to Read, it works.  This is very misleading because Jenkins should return a 403 error (or something other than a 404).

Thanks to your help, I will be able to figure out how to make this work.  Thanks again!



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-19 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















One more note.  Even if you use the API token and send credentials of one of the user accounts to read the API, if you don't have Anonymous set to read, you will get a 404 (Not Found) error.  Seems like a bug but I don't care anymore as long as there is a workaround.  Thanks again.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-19 Thread b...@billwilliams.biz (JIRA)















































Bill Williams
 resolved  JENKINS-21005 as Not A Defect


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.
















Change By:


Bill Williams
(19/Dec/13 3:21 PM)




Status:


Open
Resolved





Resolution:


NotADefect



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-18 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 updated  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.
















Change By:


Bill Williams
(18/Dec/13 3:45 PM)




Attachment:


JenkinsApiCallsPowerShell.doc



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-18 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















Hi, the network issue is a good suggestion, I should have tested on the server locally sooner.  I have now moved the logic to the server and I'm still getting the same 404 error but just on "job" calls.

Please see the newly attached JenkinsApiCallsPowerShell.doc.  It shows that I am calling localhost and the script is installed on the server.  Same issue, so it is not a network issue (I don't think).

It is very frustrating because I can get lots of data (both remotely and locally) but not job or build data.

Again, thanks for your help.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-18 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/SubCode
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/SubCode/api
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/SubCode/api/xml
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/SubCode/api/json
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/job/TritonLegacy
DEBUG: Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found."

PS C:\Windows\system32 D:\Download\JenkinsApi.ps1
DEBUG: http://localhost:8080/
RETURNS LOTS OF HTML

!DOCTYPE htmlhtmlhead


titleDashboard Jenkins...

Thank you.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-17 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 updated  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.
















Change By:


Bill Williams
(17/Dec/13 3:13 PM)




Attachment:


JenkinsApiCallsCsharp.doc



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-17 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















Thank you for all your help.  I attached a document to show how I am accessing the Jenkins API with .net (C#).  It works for some calls but anytime I try to get "job" data, I get a 404 error.

I'm not sure I need the call-remote-jenkins-job plugin but I will try anything to make this work.

Thanks again.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-13 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 created  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















Issue Type:


Bug



Affects Versions:


current



Assignee:


takeshi ito



Components:


call-remote-job



Created:


13/Dec/13 7:29 PM



Description:


Jenkins version 1.543
I can call the following API calls and always recieve data:
http://111.206.111.154:8080/api/xml (or json)
http://111.206.111.154:8080/computer/api/xml (or json)
http://111.206.111.154:8080/user/123ABC/api/xml (or json)

but anytime that I call for JOB information, regardless of the job, I always get a (404) Not Found error.  However I can copy  paste that same address in a browser and it will display information everytime.
Example:
http://111.206.111.154:8080/job/myJob/api/xml
http://111.206.111.154:8080/job/myJob/lastBuild/api/xml
http://111.206.111.154:8080/job/myJob/123/api/xml
http://111.206.111.154:8080/job/anotherJob/api/xml

Any help will be appreciated.




Environment:


Windows Server 2008 R2 Enterprise SP1




Fix Versions:


current



Project:


Jenkins



Labels:


API




Priority:


Major



Reporter:


Bill Williams

























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-13 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















Hi, I made some API calls, both successful and not to monitor the logs.  I did not see any log files being updated during those calls.  Sorry, I am not a Jenkins expert.  If you can tell me how to log the API calls, I will be glad do whatever is necessary.  Thanks.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-13 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 updated  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.
















Change By:


Bill Williams
(14/Dec/13 2:34 AM)




Attachment:


Subcode.txt





Attachment:


UCRA.txt



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [call-remote-job] (JENKINS-21005) API calls return 404 error when asking for JOB information. API returns data for non-Job information.

2013-12-13 Thread b...@billwilliams.biz (JIRA)














































Bill Williams
 commented on  JENKINS-21005


API calls return 404 error when asking for JOB information.  API returns data for non-Job information.















I attached two Console Output Logs for two different jobs that I am trying to make API calls for.  Thanks.



























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 jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.