View Orders has uncaught error for some user permissions

Description

The View Orders page works for some users (like wclerk1 in demo data), but for other users (like srmanager1) it fails with an unhelpful error message plus an un-caught JavaScript console exception.

Steps to Reproduce
Reproduced on Test (and demo-v3) in Chrome.
1) Log in as srmanager1
2) Open your Javascript console if you want to see the details (but all users, even without console open, get the on-screen error instead of getting the correct screen)
3) Navigate to View Orders
4) ERROR! "Internal Application Error" popup alert message on screen.

The same steps work for 'wclerk1'. That suggests this might be an issue with user permissions or demo data such as home facility or supplying warehouse data. But besides fixing the data, we also need to catch these kinds of Javascript exceptions so that users who don't have permissions get a helpful error message if they try to View Orders (or we need to re-visit which user rights are allowed to go to View Orders screen).

Acceptance Criteria:

  • When user doesn't have permissions to view orders, they should not see the View Orders drop down to select.

  • If user has permissions to view orders, but does not have permissions to the home facility or supplying warehouse, the error message should state: "User does not have permission, please see administrator"

Environment

None

Attachments

4

Activity

Show:
Mateusz Kwiatkowski
September 5, 2017 at 3:42 PM
(edited)

I cannot reproduce it either so I'll mark it Dead.

Sebastian Brudziński
September 4, 2017 at 9:17 AM

This can no longer be reproduced on our instances after recent changes. I'm moving this to team parrot current sprint for verification.

Brandon Bowersox-Johnson
August 17, 2017 at 9:37 PM

Update from meeting between Team ILL and Team Malawi () on August 17, 2017:

We decided to hold off on this ticket. It is not reproducible any more, so it may be totally fixed. I'm downgrading the ticket priority (no longer critical). It is not a priority for Sprint 33 or for version 3.2.0 release. I'll also put a note in the MW clone ticket about this.

Nick Reid
August 17, 2017 at 8:13 PM

Here is what happens when I try to copy and paste a link directly into the browser as 'dsrmanager'

(which is correct – except for the loading modal)

I think we can dead this ticket, because we can't reproduce it

Sam Im
August 16, 2017 at 10:39 PM

I'm not able to reproduce this bug. Users who don't have permissions to View Orders do not

see the dropdown to select.

Won't Fix
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Original estimate

Time tracking

2h logged

Components

Sprint

None

Priority

Time Assistant

Created June 20, 2017 at 11:33 PM
Updated February 8, 2023 at 1:29 PM
Resolved September 5, 2017 at 3:42 PM