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

10 views
Skip to first unread message

developer@zoom.us (JIRA)

unread,
Aug 20, 2019, 1:37:02 AM8/20/19
to jenkinsc...@googlegroups.com
zoom us created an issue
 
Jenkins / Bug JENKINS-59005
Zoom Plugin didn't work well
Issue Type: Bug Bug
Assignee: zoom us
Components: zoom-plugin
Created: 2019-08-20 05:36
Environment: Jenkins version -> 2.150.3
Zoom Plugin version -> 1.1
Priority: Minor Minor
Reporter: zoom us

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

developer@zoom.us (JIRA)

unread,
Aug 20, 2019, 9:59:02 PM8/20/19
to jenkinsc...@googlegroups.com
zoom us assigned an issue to Unassigned
Change By: zoom us
Assignee: zoom us

developer@zoom.us (JIRA)

unread,
Aug 21, 2019, 10:20:03 PM8/21/19
to jenkinsc...@googlegroups.com
zoom us assigned an issue to Alex Earl
Change By: zoom us
Assignee: Alex Earl

developer@zoom.us (JIRA)

unread,
Aug 21, 2019, 10:21:02 PM8/21/19
to jenkinsc...@googlegroups.com
zoom us commented on Bug JENKINS-59005
 
Re: Zoom Plugin didn't work well

Hi Alex Earl, can you give any help on this?

slide.o.mix@gmail.com (JIRA)

unread,
Aug 21, 2019, 10:33:02 PM8/21/19
to jenkinsc...@googlegroups.com

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

slide.o.mix@gmail.com (JIRA)

unread,
Aug 21, 2019, 10:34:02 PM8/21/19
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to zoom us
 
Change By: Alex Earl
Assignee: Alex Earl zoom us

developer@zoom.us (JIRA)

unread,
Aug 26, 2019, 3:18:02 AM8/26/19
to jenkinsc...@googlegroups.com
zoom us commented on Bug JENKINS-59005
 
Re: Zoom Plugin didn't work well

Hi Alex Earl, 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!

Reply all
Reply to author
Forward
0 new messages