bug in handling sessions
Hi, I have discovered the following weird Galaxy behaviour. If one sets log_actions = True in universe_wsgi.ini and tries to display the Saved Histories, then the Saved histories don't show up. The problem arises from ../lib/galaxy/web/framework/helpers/grids.py line (around 230) trans.log_action( trans.get_user(), unicode( "grid.view" ), context, params) Until this line, the Query object 'query' has queried the DB and fetched the necessary data. Yet, in the file ../lib/galaxy/web/framework/__init__.py in the function log_action self.sa_session.flush() seems to flush everything, including the data fetched by the 'query' object in grids.py Thus, the Saved Histories get "No Items" message. Commenting out the line log_actions = True does the job, but ... Any suggestions? Best regards Nikolay -- Nikolay Vazov, PhD Research Computing Centre - http://hpc.uio.no USIT, University of Oslo
Hi, Nikolai This should have been fixed with commit 10200:fd4113962c32 to the stable branch. What version are you using? Thanks On Wed, Oct 16, 2013 at 8:19 AM, Nikolai Vazov <n.a.vazov@usit.uio.no>wrote:
Hi,
I have discovered the following weird Galaxy behaviour. If one sets
log_actions = True
in universe_wsgi.ini
and tries to display the Saved Histories, then the Saved histories don't show up.
The problem arises from ../lib/galaxy/web/framework/**helpers/grids.py
line (around 230)
trans.log_action( trans.get_user(), unicode( "grid.view" ), context, params)
Until this line, the Query object 'query' has queried the DB and fetched the necessary data. Yet, in the file
../lib/galaxy/web/framework/__**init__.py
in the function log_action
self.sa_session.flush()
seems to flush everything, including the data fetched by the 'query' object in grids.py
Thus, the Saved Histories get "No Items" message.
Commenting out the line
log_actions = True
does the job, but ...
Any suggestions?
Best regards
Nikolay
-- Nikolay Vazov, PhD Research Computing Centre - http://hpc.uio.no USIT, University of Oslo ______________________________**_____________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/**search/mailinglists/<http://galaxyproject.org/search/mailinglists/>
Hi, I guess this is the way one does it, right? So, it must be release_2013.06.03 Nikolay [root@galaxy-test galaxy-dist]# cat .hgtags a4113cc1cb5eaa68091c9a73375f00555b66dd11 release_2013.01.13 1c717491139269651bb59687563da9410b84c65d release_2013.02.08 75f09617abaadbc8cc732bb8ee519decaeb56ea7 release_2013.04.01 2cc8d10988e03257dc7b97f8bb332c7df745d1dd security_2013.04.08 58811a78af8a09b77405dc343a5b2795f4cc6e88 release_2013.06.03 On 2013-10-16 16:43, Carl Eberhard wrote:
Hi, Nikolai
This should have been fixed with commit 10200:fd4113962c32 to the stable branch. What version are you using?
Thanks
On Wed, Oct 16, 2013 at 8:19 AM, Nikolai Vazov <n.a.vazov@usit.uio.no> wrote:
Hi,
I have discovered the following weird Galaxy behaviour. If one sets
log_actions = True
in universe_wsgi.ini
and tries to display the Saved Histories, then the Saved histories don't show up.
The problem arises from ../lib/galaxy/web/framework/helpers/grids.py
line (around 230)
trans.log_action( trans.get_user(), unicode( "grid.view" ), context, params)
Until this line, the Query object 'query' has queried the DB and fetched the necessary data. Yet, in the file
../lib/galaxy/web/framework/__init__.py
in the function log_action
self.sa_session.flush()
seems to flush everything, including the data fetched by the 'query' object in grids.py
Thus, the Saved Histories get "No Items" message.
Commenting out the line
log_actions = True
does the job, but ...
Any suggestions?
Best regards
Nikolay
-- Nikolay Vazov, PhD Research Computing Centre - http://hpc.uio.no [1] USIT, University of Oslo ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/ [2]
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/ [3]
Links: ------ [1] http://hpc.uio.no [2] http://lists.bx.psu.edu/ [3] http://galaxyproject.org/search/mailinglists/
-- Nikolay Vazov, PhD Research Computing Centre - http://hpc.uio.no USIT, University of Oslo
participants (2)
-
Carl Eberhard
-
Nikolai Vazov