/pos/web route returns 404 when no session exists

Bug #1314375 reported by Yusef Napora
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP POS addons
New
Undecided
Unassigned

Bug Description

I am new to OpenERP and am still in the evaluation phase, so I apologize in advance if I've missed something obvious here. I am running a new install of the current trunk, with the Point of Sale module installed.

When navigating to http://hostname/pos/web the OpenERP server returns a 404 response unless there is a stored session cookie. This can easily be tested by navigating to /pos/web in a private or incognito browser window. Unfortunately, this makes it impossible to add the Point of Sale page to an iPad's "home screen", as the newly created web app does not have any session information attached and will always receive the 404 response.

Looking in addons/point_of_sale/controllers/main.py, the PosController class defines the '/pos/web' route as having auth='none', which, according to the docs should call the route handler even if there is no logged in user.

The expected behavior is a redirect to the login page, as defined by the code:
    if not request.session.uid:
        return login_redirect()

However, after putting a simple _logger.debug() call into the top of the route handler method, it is clear that the route handler is not being called when accessed from a private browser window.

Thanks, and let me know if I can provide any more information.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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