Session directory does not detect proper user

Bug #1172306 reported by Niels Huylebroeck
4
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Undecided
OpenERP Publisher's Warranty Team
OpenERP Community Backports (Web)
New
Undecided
Unassigned
6.1
Fix Committed
Undecided
Stefan Rijnhart (Opener)

Bug Description

When using start-stop-daemon with -c / --user option the current user detection method would think it was still running as root, which would create a session directory called oe-sessions-root with permissions for the actual posix user.

When running multiple instances of openerp each would try to create/use this directory '/tmp/oe-sessions-root' but only the first would have the correct rights for accessing it.

Tags: maintenance
Changed in openerp-web:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Revision history for this message
Niels Huylebroeck (red15) wrote :

There was a launchpad question about this which has some conclusions, just linking it here for reference : https://answers.launchpad.net/openobject-server/+question/196552

Revision history for this message
Dominique Chabord (dominique-chabord) wrote :

hello,
do you think it is a bug of openerp or in the script you use to start your service ?
imho, you shouldn't use start-stop-daemon.

Revision history for this message
Niels Huylebroeck (red15) wrote :

Even though it might not be the best solution, start-stop-daemon works and the code that detected the current user running openerp was easily confused, the merge proposed can now handle this user swapping better AND still works as originally on non-posix platforms.

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed in the 7.0 branch, we're now using os.geteuid() to detect the current euid, and falling back on the environment-set username (on windows)

Changed in openerp-web:
status: New → Fix Released
no longer affects: ocb-web/7.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.