Why do I get IllegalArgumentException for rest api call in "enabled" lifecycle method

Thushara wimalasena April 19, 2018

Recently we have released a new version of our cloud connect add-on and with that, we implemented some business logic in the "enabled" lifecycle method for backward compatibility support.  

This new code invokes a rest api call and retrieves some property values from user jira cloud instance databases.

The rest api call is being failed and return the following error in the event of upgrading already installed add-ons with the new version released.  But this error does not occur for fresh installation and api call returns successful response.

java.lang.IllegalArgumentException: The provided AtlassianHostUser did not specify a user to act as

Can you please provide us the source of the issue and possible resolution for it?

Additional information :

  • In our add-on descriptor, we have defined both "ADMIN" and "ACT_AS_USER" for add-on scopes.
  • We also have a private pre-review version of the add-on for testing purposes and we have tested the above functionality using it successfully. In that case, we always upgraded the add-on by providing the descriptor url using "Add-ons->Manage add-ons->Upload add-on"  button.

Thank you

 

 

 

 

 

 

 

 

 

1 answer

0 votes
Melek Jebnoun_Vectors_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 28, 2022

Hello

Did you manage to have an explanation for such a behavior ?

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events