lukefitzwolfgang / icatproject

Automatically exported from code.google.com/p/icatproject
0 stars 0 forks source link

Auth rules - instrument scientist rule causes loop in object graph #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Add a rule to allow instrument scientists to access investigations for their 
instrument:
isInv.what = "Investigation <-> Instrument <-> InstrumentScientist <-> User 
[name = :user]";

What is the expected output? What do you see instead?

When calling a query that invokes this rule (e.g. find investigation) the 
following error is returned:

IcatException_Exception: Can't have loop in graph of entities. 'Investigation' 
was encountered twice following InstrumentScientist -> Instrument -> 
Investigation

Original issue reported on code.google.com by tom.grif...@stfc.ac.uk on 15 Nov 2012 at 2:12

GoogleCodeExporter commented 9 years ago
I have changed this to an enhancement as it is behaving as advertised - though 
not as we want.

Original comment by dr.s.m.f...@gmail.com on 15 Nov 2012 at 4:22

GoogleCodeExporter commented 9 years ago

Original comment by dr.s.m.f...@gmail.com on 11 Apr 2013 at 3:57

GoogleCodeExporter commented 9 years ago

Original comment by dr.s.m.f...@gmail.com on 30 May 2013 at 1:49

GoogleCodeExporter commented 9 years ago
This is now coded and checked in - you can now use the new query syntax

Original comment by dr.s.m.f...@gmail.com on 5 Aug 2013 at 4:19

GoogleCodeExporter commented 9 years ago

Original comment by dr.s.m.f...@gmail.com on 22 Aug 2013 at 1:45

GoogleCodeExporter commented 9 years ago
The change for this is done now.

Original comment by dr.s.m.f...@gmail.com on 25 Oct 2013 at 10:07