It's all about the answers!

Ask a question

Possible Bug in Item connector Framework


Ankur Sharma (151194) | asked Jul 24 '09, 2:50 a.m.
Hi

We were doing our testing of connector built on top of Item connector framework. So we had two project P1 and P2 on the same jazz server. A user 'U' was a member of both P1 and P2 But in P1 he had all the permissions of running Item Connector operations But in P2 the same user had no permissions for running the item connector permissions. Also P1 and P2 both had their own sync rules stored. But by mistake, we were trying to run the incoming synchronization (External to Jazz) in P2 using the user U (where he had no permissions to run the sync operations). Ideally this should show the error that the user U has no permissions in P2 project area. But what it did was really strange. Since user 'U' had permission of running sync action in P1 (but no in P2), so it picked up the sync rule of project P1 and tried to sync the workitems using the sync rule in P1, which should not happen.

This is the function which we have used to retrieve the sync rule for a project Area

ISyncRuleHandle[] syncRuleHandles = interopManager.findSyncRulesByProjectArea(projectAreaHandle, null);


Is there something which I may be missing or is this a bug ?

Thanks
-Ankur

One answer



permanent link
John Vasta (2.6k15) | answered Jul 24 '09, 8:51 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
It is up to the external connector client as to which project area it connects to, and which sync rules it chooses to use.If you're suggesting that the findSyncRulesByProjectArea method is searching a different project area than the one designated by the projectAreaHandle argument, then I don't think that's possible. You should take a closer look at what your code is doing.

Hi

We were doing our testing of connector built on top of Item connector framework. So we had two project P1 and P2 on the same jazz server. A user 'U' was a member of both P1 and P2 But in P1 he had all the permissions of running Item Connector operations But in P2 the same user had no permissions for running the item connector permissions. Also P1 and P2 both had their own sync rules stored. But by mistake, we were trying to run the incoming synchronization (External to Jazz) in P2 using the user U (where he had no permissions to run the sync operations). Ideally this should show the error that the user U has no permissions in P2 project area. But what it did was really strange. Since user 'U' had permission of running sync action in P1 (but no in P2), so it picked up the sync rule of project P1 and tried to sync the workitems using the sync rule in P1, which should not happen.

This is the function which we have used to retrieve the sync rule for a project Area

ISyncRuleHandle[] syncRuleHandles = interopManager.findSyncRulesByProjectArea(projectAreaHandle, null);


Is there something which I may be missing or is this a bug ?

Thanks
-Ankur

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.