Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting appropriate group in getEventLogsByPeriod context (see #9609) #370

Merged
merged 2 commits into from Sep 24, 2012

Conversation

cneves
Copy link
Member

@cneves cneves commented Sep 19, 2012

The issue I'm trying to fix is one more case of having omero.group=-1 in ctx not working.

In this particular case even without being sure of wether this can be considered a server bug or not I'm fairly sure it is safe to properly set the omero.group because the query itself is filtered by omero.group and thus it is not apparently possible that results would ever be hit outside the proper event context group.

@joshmoore: I might be speaking out of turn when I say this is not a server bug, can you review that please?

@joshmoore
Copy link
Member

I don't know if you are getting an exception, etc. but I doubt that it can (ever?) be considered the wrong thing to do to pass an explicit group.

@chris-allan
Copy link
Member

@joshmoore: Looks like the exception @cneves is trying to work around is in #9609 (http://trac.openmicroscopy.org.uk/ome/ticket/9609). I wonder if this would be fixed or affected by your changes on #369?

@joshmoore
Copy link
Member

Certainly possible, though I haven't recently fixed any NPEs specifically. Might be worth trying to reproduce at all today with various combinations of develop, sprint5-bugs, and this branch.

@chris-allan
Copy link
Member

Bug fixed. Page no longer throws an error. Will write a unit test for ITimeline usage similar to what was in place before to see if I can tease out what was causing the NPE.

Added duplicate tests to several of the methods in
itimline.py. Two tests are still failing but were
doing so before these changes. Also removed the
duplicate test1175 which was identical to the other
method of the same name.
@joshmoore
Copy link
Member

The tests from 58592ad don't show an NPE against 4.4.0 nor 4.4.3. @cneves, any ideas on reproducing?

@cneves
Copy link
Member Author

cneves commented Sep 21, 2012

@joshmoore, the offending case was based on having a non-admin user part of a group with events, and then running the timeline query with omero.group=-1. I believe the case tested had the user's event context group being something other than the group he was searching on, too.

I can try to write a test that creates the appropriate graph for triggering this, if needed.

@joshmoore
Copy link
Member

@cneves, adding a test surely wouldn't hurt, but not holding up release for that.

joshmoore added a commit that referenced this pull request Sep 24, 2012
Setting appropriate group in getEventLogsByPeriod context (see #9609)
@joshmoore joshmoore merged commit 87b429c into ome:develop Sep 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants