[JIRA] (JENKINS-57991) Improve the error message when the credentials of the remote Jenkins are not correct

7 views
Skip to first unread message

pibeitz@gmail.com (JIRA)

unread,
Jun 12, 2019, 11:42:02 AM6/12/19
to jenkinsc...@googlegroups.com
Pierre Beitz assigned an issue to Pierre Beitz
 
Jenkins / Improvement JENKINS-57991
Improve the error message when the credentials of the remote Jenkins are not correct
Change By: Pierre Beitz
Assignee: Pierre Beitz
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

pibeitz@gmail.com (JIRA)

unread,
Jun 12, 2019, 11:42:02 AM6/12/19
to jenkinsc...@googlegroups.com
Pierre Beitz created an issue
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: job-import-plugin
Created: 2019-06-12 15:41
Priority: Minor Minor
Reporter: Pierre Beitz

Current situation does an error difficult to decrypt because the plugin doesn't check for the response status code:
 

2019-06-12 11:14:33.668+0000 [id=86689] SEVERE  o.j.c.p.j.client.RestApiClient#getRemoteItems: Failed to list job from remote <url> org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 3; The element type "hr" must be terminated by the matching end-tag "</hr>".     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)     at org.jenkins.ci.plugins.jobimport.client.RestApiClient.getRemoteItems(RestApiClient.java:34)     at org.jenkins.ci.plugins.jobimport.JobImportAction.doQueryInternal(JobImportAction.java:278)     at org.jenkins.ci.plugins.jobimport.JobImportAction.doQuery(JobImportAction.java:174)

 
Proposed fix checking for this status code:

Jun 12, 2019 5:36:04 PM org.jenkins.ci.plugins.jobimport.client.RestApiClient getRemoteItems
SEVERE: Failed to list job from remote <url>/SEVERE: Failed to list job from remote <url>/org.acegisecurity.AccessDeniedException: Remote Jenkins denied access. Please check the provided credentials at org.jenkins.ci.plugins.jobimport.utils.URLUtils.fetchUrl(URLUtils.java:88) at org.jenkins.ci.plugins.jobimport.client.RestApiClient.getRemoteItems(RestApiClient.java:35) at org.jenkins.ci.plugins.jobimport.JobImportAction.doQueryInternal(JobImportAction.java:278) at org.jenkins.ci.plugins.jobimport.JobImportAction.doQuery(JobImportAction.java:174)

pibeitz@gmail.com (JIRA)

unread,
Jun 12, 2019, 11:53:02 AM6/12/19
to jenkinsc...@googlegroups.com
Pierre Beitz started work on Improvement JENKINS-57991
 
Change By: Pierre Beitz
Status: Open In Progress

pibeitz@gmail.com (JIRA)

unread,
Jun 12, 2019, 11:53:02 AM6/12/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages