Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1802

Here is a error in getStatusResponse() when post data exception for AtlasClient class

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.0, master
    • 1.0.0, master
    • plugins
    • None
    • Patch

    Description

      Here is a error in getStatusResponse() when post data exception for AtlasClient class

      try {
      				statusResponse = webResource.type("application/x-www-form-urlencoded").post(ClientResponse.class,
      						formData);
      			} catch (Exception e) {
      				String msgDesc = "Unable to get a valid statusResponse for " + "expected mime type : ["
      						+ EXPECTED_MIME_TYPE + "] URL : " + statusUrl + " - got null response.";
      				LOG.error(msgDesc);
      			}
      

      should be

      try {
      				statusResponse = webResource.type("application/x-www-form-urlencoded").post(ClientResponse.class,
      						formData);
      			} catch (Exception e) {
      				String msgDesc = "Unable to get a valid statusResponse for " + "expected mime type : [application/x-www-form-urlencoded] URL : " + statusUrl + " - got null response.";
      				LOG.error(msgDesc);
      			}
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            peng.jianhua peng.jianhua
            zhangqiang2 Qiang Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment