This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 269854 - Insufficient Permissions when updating repository configuration with JIRA 3.13.1 Professional
Summary: Insufficient Permissions when updating repository configuration with JIRA 3.1...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 major with 1 vote (vote)
Target Milestone: 3.2   Edit
Assignee: Thomas Ehrnhoefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 260972 (view as bug list)
Depends on:
Blocks: 271019
  Show dependency tree
 
Reported: 2009-03-24 13:45 EDT by Steffen Pingel CLA
Modified: 2009-05-29 19:52 EDT (History)
2 users (show)

See Also:


Attachments
fix (1.79 KB, text/plain)
2009-03-24 20:13 EDT, Steffen Pingel CLA
no flags Details
mylyn/context/zip (986 bytes, application/octet-stream)
2009-04-10 22:40 EDT, Steffen Pingel CLA
no flags Details
patch (2.43 KB, patch)
2009-05-21 16:38 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (19.93 KB, application/octet-stream)
2009-05-21 16:38 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch (1.22 KB, patch)
2009-05-25 17:51 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (13.76 KB, application/octet-stream)
2009-05-25 17:51 EDT, Thomas Ehrnhoefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2009-03-24 13:45:05 EDT
An ?Insufficient Permissions? error occurs when synchronizing tasks after upgrading to the 3.1.0 version of the Jira connector.

This is possibly related to the changes made for bug 212960.
Comment 1 Steffen Pingel CLA 2009-03-24 20:13:14 EDT
Created attachment 129781 [details]
fix
Comment 2 Steffen Pingel CLA 2009-03-24 20:15:49 EDT
This affects JIRA Professional 3.13 and later. Unlike the Enterprise edition, the Professional edition does not support security levels.

I will commit he fix. Thomas, reassigning to you since we'll need a test case for this. We can look into how to best implement that together.
Comment 3 Ophélie Salm CLA 2009-03-26 05:05:50 EDT
Just in case :
I had the same issue with JIRA Standard Edition 3.13.2 and JIRA Connector 3.1.0. Updating to the weekly build 3.2.0I2009-03-25 of the connector solved the problem.
Comment 4 Steffen Pingel CLA 2009-03-26 18:17:58 EDT
*** Bug 260972 has been marked as a duplicate of this bug. ***
Comment 5 Steffen Pingel CLA 2009-04-10 22:40:59 EDT
Created attachment 131538 [details]
mylyn/context/zip
Comment 6 Hong-ming (Sam) Yeh CLA 2009-04-16 18:34:03 EDT
The fix doesn't work for me. I'm using Jira Enterprise Edidtion 3.13-#330, HTTP authentication required, with Mylyn JIRA Connector 3.2.0.l20090410-1800-e3x on Eclipse 3.4.1 build M20080911-1700. I still get the "Insufficient permissions" error when I update repository configuration.
Comment 7 Steffen Pingel CLA 2009-04-16 19:08:29 EDT
This bug only applies to JIRA Professional and Standard Edition. Is your user part of the jira-users group?
Comment 8 Hong-ming (Sam) Yeh CLA 2009-04-16 20:14:16 EDT
Steffen Pingel,
Yes, my user is in jira-users. So do you mean there's a different bug with Jira Enterprise Edidtion?
Comment 9 Thomas Ehrnhoefer CLA 2009-04-16 20:41:48 EDT
I just tested a Jira Enterprise Edidtion 3.13-#330 with both Mylyn 3.1 as well as the latest from HEAD, on both I could retrieve the repository configuration without an error.
Comment 10 Steffen Pingel CLA 2009-04-21 17:53:32 EDT
Yes, I suspect a different cause for the problem you are experiencing. Hong, can you please file a separate bug and provide steps to reproduce the problem?

Thomas, we'll need a test case for this.
Comment 11 Hong-ming (Sam) Yeh CLA 2009-04-21 18:09:34 EDT
I added a new bug for Jira Enterprise at https://bugs.eclipse.org/bugs/show_bug.cgi?id=273146
Comment 12 Thomas Ehrnhoefer CLA 2009-05-21 16:38:36 EDT
Created attachment 136722 [details]
patch

Testcases for retrieving security levels (one for a privileged and one for an unprivileged user)
Comment 13 Thomas Ehrnhoefer CLA 2009-05-21 16:38:39 EDT
Created attachment 136723 [details]
mylyn/context/zip
Comment 14 Thomas Ehrnhoefer CLA 2009-05-22 14:46:19 EDT
Ok, Test seems to fail today (worked yesterday), so I am not using the right permission settings to trigger the non-retrieval of the securityLevels...
Needs more playing around, not sure what the correct setting is
Comment 15 Thomas Ehrnhoefer CLA 2009-05-25 17:51:37 EDT
Created attachment 137079 [details]
patch

It seems that the logout does not work correctly. While the two tests introduced with the latest patch work while running on their own, if ran with the testAvailableGetSecurityLevels test the testProjectSecurityLevelNotAccessible will faile (because the securitylevels are in fact set on the project).

Not sure how to solve this here, seems like a lot of work for a minor reason.
Comment 16 Thomas Ehrnhoefer CLA 2009-05-25 17:51:40 EDT
Created attachment 137080 [details]
mylyn/context/zip
Comment 17 Thomas Ehrnhoefer CLA 2009-05-27 17:11:20 EDT
We have bug 277254 for the test failing when run alone...
So I guess those test cases should be fine, I removed the privileged user and am using the guest/user levels
Comment 18 Steffen Pingel CLA 2009-05-29 19:52:33 EDT
Thanks Thomas! Patch applied.