Conversations with more than ONE user in GCP

book

Article ID: 197471

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

When addressing conversations with more than ONE user, an error is given to the message creator, and a vague message is sent to the recipients.

API-1019: Could not process the request due to internal error.

app-ca.log:

ERROR 2020-07-21 07:21:20,382 [pool-13-thread-7] notification.Utils (clarity:username:8644737__FBE9508A-D5E1-4504-85AE-44ACFDC4C127:none) Error occured trying to get object instance
java.lang.StringIndexOutOfBoundsException: begin 0, end 947, length 189
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at com.ca.ppm.nmc.conversation.util.ConversationUtils.getStyledMessage(ConversationUtils.java:94)
at com.ca.ppm.nmc.conversation.ConversationInstanceService.processReferences(ConversationInstanceService.java:505)
at com.ca.ppm.nmc.conversation.ConversationInstanceService.doPostRead(ConversationInstanceService.java:491)
at com.niku.odf.object.ODFAbstractObjectImpl.readInstance(ODFAbstractObjectImpl.java:2771)
at com.niku.odf.object.ODFAbstractObjectImpl.readInstance(ODFAbstractObjectImpl.java:2580)
at com.niku.union.notification.Utils.getReplacementText(Utils.java:687)
at com.niku.union.notification.Notification.sendAutoNotification(Notification.java:176)
at com.niku.union.notification.Notification.sendAutoNotification(Notification.java:124)
at com.niku.union.notification.Notification.sendAutoNotification(Notification.java:89)
at com.niku.union.notification.Notification.run(Notification.java:61)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834) 

Steps to Reproduce:

  1. Go into a Project, CONVERSATIONS Module 
  2. Start a conversation 
  3. Add more than 1 USER using the '@mention' action 
  4. Post the conversation 

Expected Results: Conversation successfully sent without any error message. 

Actual Results: The conversation is sent with an incomplete body, and the end-user sees an error message. 

Cause

DE56975

The defect will be reviewed by engineering for possible inclusion in a future version, service pack, or patch.

Environment

Clarity PPM 15.8.1 (in GCP)

Resolution

As a workaround, post conversations adding less than 1 person.