• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • zoom-plugin
    • None
    • Jenkins version -> 2.150.3
      Zoom Plugin version -> 1.1

      A customer reported that he failed to use Zoom Plugin in Jenkins. After checking the customer's System Log, i found the issue arised in this function:

      public static boolean notify(String url, String authToken, String message) {
       boolean success = false;
       log.info("Send notification to {}, authToken: {}, message: {}", url, authToken, message);
       if(url == null || url.isEmpty()){
         log.error("Invalid URL");
         return success;
       }
       HttpPost httpPost = new HttpPost(url);
       try {
         httpPost.setHeader("content-type", "application/json;charset=UTF-8");
         if(authToken != null && !authToken.isEmpty()){
           httpPost.setHeader("Authorization", authToken);
         }
         if(message != null && !message.isEmpty()){
         StringEntity stringEntity = new StringEntity(message, "UTF-8");
         stringEntity.setContentEncoding("UTF-8");
           httpPost.setEntity(stringEntity);
         }
         CloseableHttpResponse response = httpclient.execute(httpPost);
         int responseCode = response.getStatusLine().getStatusCode();
         HttpEntity entity = response.getEntity();
         log.info("Response code: {}", responseCode);
         if (entity != null) {
           log.info("Response entity: {}", EntityUtils.toString(entity));
         }
         if(responseCode == HttpStatus.SC_OK){
           success = true;
         }
       } catch (IOException e) {
         log.error("Error posting to Zoom, url: {}, authToken: {}, message: {}", url,    authToken, message);
       } finally {
         httpPost.releaseConnection();
       }
       return success;
      }

      here is the __ log from the customer:

      Aug 12, 2019 8:36:23 AM INFO io.jenkins.plugins.zoom.ZoomNotifyClient notify 
      Send notification to https://applications.zoom.us/addon/jenkins/webhooks/******, authToken: ******, message: null

      Neither returns the Response code, nor throws exception, the function just returns false.

      I'm not able to duplicate this issue in my local, any idea on how it happened?

      Code is on GitHub: https://github.com/jenkinsci/zoom-plugin

          [JENKINS-59005] Zoom Plugin didn't work well

          zoom us created issue -
          zoom us made changes -
          Assignee Original: zoom us [ zoom_us ]
          zoom us made changes -
          Assignee New: Alex Earl [ slide_o_mix ]

          zoom us added a comment -

          Hi slide_o_mix, can you give any help on this?

          zoom us added a comment - Hi slide_o_mix , can you give any help on this?

          Alex Earl added a comment -

          I don't know why this is assigned to me. When you develop a plug-in, it is your responsibility to debug customer issues.

          Alex Earl added a comment - I don't know why this is assigned to me. When you develop a plug-in, it is your responsibility to debug customer issues.
          Alex Earl made changes -
          Assignee Original: Alex Earl [ slide_o_mix ] New: zoom us [ zoom_us ]

          zoom us added a comment -

          Hi slide_o_mix, I did not mean to assign it to you. I just want to know on what condition will the code behaves differently with the same input. For example, will the Jenkins version or JDK version affect?

          Normally it works well, only one customer reported this issue.

          I'd appreciate it if you can help!

          zoom us added a comment - Hi slide_o_mix , I did not mean to assign it to you. I just want to know on what condition will the code behaves differently with the same input. For example, will the Jenkins version or JDK version affect? Normally it works well, only one customer reported this issue. I'd appreciate it if you can help!

            zoom_us zoom us
            zoom_us zoom us
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: