My team develops Structure plugin for Jira cloud. Our users encountered “Something’s gone wrong” error message. We discovered that there are few cases then this error message appears when it shouldn’t.
User session expires and user tries to reload page.
User global permission was revoked by administrator and user reloads page.
User uses direct link without logging in first.
We tried removing “has_global_permission” and “user_is_logged_in” conditions from our plugin descriptor, but it had no effect.
It would be great to have some meaningful error message (or redirection to login page when it is possible). Or no error at all, so we could check user authorisation and permissions by ourselves.
Hi @SergeiAfanasev ,
Can you describe your problem more thoroughly?
At what pages exactly does the error appear?
Can you give some steps to reproduce it?
Hi @TomaszZasada !
For example, open any Jira cloud plugin (Structure would be perfect) and copy its URL. Then logout and try to open copied URL. You should see the error instead of login page.
Did you see this thread already?
Another developer has shared a workaround in this comment: When user is not logged in Jira is not redirecting to login page when app general page is accessed using direct link - #9 by moveworkforward
It would not help in every case, but it could help in the third case that you shared.
Hi @ccurti! Yes, I saw it. It helps, but only if we provided such link to a user. If one user copies url directly from browser and sends it to another user, then problem stays.