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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jason,
Glad to hear the issue is sorted!
Take care, and have a pleasant week.
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.