Hi,
I am working on jira-importers-plugin customization to a normal user/group. I have been changed atlassian-plugin.xml and remaining files in this plugin and made the link to outside the administration.
But when i click on 'External Import' link i am getting "Permission Violation" error as "user does not have permission to access this page".
Why it is happening. In standalone application i am not getting this error, imported succesfully. But in test machines i am getting above error.
Could you please tell me, weather jira checking permissions any where for the link. Where i need to do changes please help me.
Regards,
Patina
By changing @WebSudoRequired to @WebSudoNotRequired annotation rectified the problem.
Hi Rambabu,
I am facing similar issue in my custom importer. May I know for which methods we need to add @WebSudoNotRequired annotation to avoid "Permission Violation" error.
Thanks in advance.
-Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas, In ExternalImport.java and ImporterProcessSupport.java files you need to change the annotations from @WebSudoRequired to @WebSudoNotRequired.
Thanks,
Rambabu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rambabu,
Thanks a lot for your response.
As I am writing custom importer, how to change these annotations as they are part of actual importer?
In custom impporter I have included its dependency as provided so please let me know how to change this in that case?
<dependency>
<groupId>com.atlassian.jira.plugins</groupId>
<artifactId>jira-importers-plugin</artifactId>
<version>${jim.version}</version>
<scope>provided</scope>
</dependency>
Thanks,
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
In that case you can override the classes ExternalImport and ImporterProcessSupport,and change the annotations from @WebSudoRequired to @WebSudoNotRequired and then you can use the overridden classes in your custom importer.
Thanks,
Rambabu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.