Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

problem with Confluence Cloud add-on: uid undefined on AC.getUser method

Jason Wright
Contributor
August 30, 2018

Hi,
My add-on - Document Control for Confluence Cloud - uses atlassian-connect-express 3.1.0. It's experiencing issues which looks to be from a call to `AP.getUser`.


com.atlassian.plugins.atlassian-connect-plugin:ap-user-v5.js?externals=__local-default__:5 Uncaught TypeError: Cannot read property 'uid' of undefined
at Object.getUser (com.atlassian.plugins.atlassian-connect-plugin:ap-user-v5.js?externals=__local-default__:5)
at a._handleRequest (com.atlassian.plugins.atlassian-connect-plugin:ap-core-v5.js?externals=__local-default__:48)
at a.b._receiveMessage (com.atlassian.plugins.atlassian-connect-plugin:ap-core-v5.js?externals=__local-default__:61)

 It seems to fail in the exact same way as this JIRA Cloud issue:

https://jira.atlassian.com/browse/JRACLOUD-69292

I see that `AP.getUser` is deprecated but has the functionality already been removed? Or is this a bug?

Thanks,

Jason Wright

1 answer

1 accepted

0 votes
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2018

Hello, Jason!

Could you tell me if AP.getUser() is actually returning a user? If it doesn't, that might point to a ACJS / Connect issue.

If data isn't present in the context, as in the ticket you linked, then it might be an ACE issue. You mentioned you're using ACE version 3.1.0. In this version, there are some known bugs around user data which looks to be resolved in the near future. Once this is resolved, this could potentially resolve your issue, if that is the case.

Could you confirm if you have an example tenant or instance that you are seeing this on, so we can help debug? Only if you have one that you're comfortable with sharing publicly, of course. Lastly, could you give us more information on how you're using ACE + ACJS, such as some sample code?

Regards,

Shannon

Jason Wright
Contributor
November 18, 2018

Hi Shannon,

Apologies for the delayed response. For whatever reason, the issue went away later that day. Might have been some cache problem on my end, but either way, I was not able to reproduce it.

Thanks,

Jason

Like Shannon S likes this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2018

Hi Jason,

Glad to hear the issue is sorted!

Take care, and have a pleasant week.

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events