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

Missing events if logged in zmNinja with non admin user #568

Closed
tecufanujacu opened this issue Dec 15, 2017 · 15 comments
Closed

Missing events if logged in zmNinja with non admin user #568

tecufanujacu opened this issue Dec 15, 2017 · 15 comments
Labels

Comments

@tecufanujacu
Copy link

I have three cameras and in Zoneminder other then the admin I created an user with limited abilities, if I try to use this user in zmNinja I have a problem, when I enter in the event menu I can only see the events from one camera but with the filters I can see the events from all the cameras. Instead using the admin I haven't any problem.

Here how the user is configured (anyway I also tried configuring the user as the admin with the same result):

Language: default
Enabled: Yes
Stream: View
Events: View
Control: View
Monitors: View
Groups: None
System: None
Bandwidth:
Monitor: CAMERA_1, CAMERA_2, CAMERA_3

@pliablepixels
Copy link
Member

  1. What is the output of http://server/zm/api/events.json when logged in as that user in a browser? Does it show all the cameras?

  2. Please give more detail about the "with filters" part - which filters and what do you enter there?

@tecufanujacu
Copy link
Author

tecufanujacu commented Dec 18, 2017

  1. Yes, logged in as user I can see all the cameras in the events.json .
  2. I have CAMERA_1, CAMERA_2, CAMERA_3, I receive a push notification about an alarm from CAMERA_1 and when in ZmNinja I go in the "Events List" menu I can only see events from CAMERA_3. If in "Events list" I filter the last events (1 hour summary, 1 day summary, etc) I can correctly see all the alarmed events from all the cameras, If in "Events list" I select "Show all events" I can see the events from all the cameras. After a while that I play with filters and I switch from "Show all events" and "Show alarmed events" then everything becomes normal and I'm able to see all alarm events in the "Evens list" also with the setting "Show alarmed events". Seems that zmNinja needs an input to update the events list when logged in as user.

I noticed this problem also with old version of zmNinja.

@pliablepixels
Copy link
Member

If you go to the Montage screen and click on the 'eye' icon at top, are Camera 1 and Camera 2 disabled when this happens?

@tecufanujacu
Copy link
Author

No, they are enabled.

@pliablepixels
Copy link
Member

is there any chance I can get access to this restricted account for a few days? I can't replicate it. If it is possible, please send me portal URL and credentials via email to pliablepixels @ gmail (Please don't post here).

@pliablepixels
Copy link
Member

Can you please, in detail, explain exactly how to replicate this with two accounts? I've created a test account with restrictions.

How do I go about re-creating this error exactly - does it happen every time you switch from admin to restricted, for example? Again, the help I need is a 100% reproducible scenario that you can explain in your system. I'll try it in mine. I tried switching from admin to test and still see the monitors I am allowed to see in my system, so I want to make sure I am following your steps. Please don't describe at a high level - all steps/details please. Thank you.

@tecufanujacu
Copy link
Author

tecufanujacu commented Dec 23, 2017

In my case everything is really simple to replicate. I created in Zoneminder a restricted account named user as described in the first comment. If in zmNinja on my Android phone I'm logged in with this restricted account then in the "Events List" I'm not able to see the events from all my cameras but only from one of them. In the filters instead I'm able to see all of them. If you need some particular info let me know.

I'll send you some screenshots from email.

@pliablepixels
Copy link
Member

pliablepixels commented Dec 23, 2017

Ok. This is not happening to me - screenshots really won't help. I've made some changes to the code which are more related to how reloading happens. Not sure if it will help in your case. I'd like you to test the new version - but in desktop not mobile. Which desktop port can I provide ? win64/linux64/etc

What I will need is detailed zmNinja logs (all of it) - I'll post instructions on how to extract the logs I need after you let me know the desktop version you can test.

@tecufanujacu
Copy link
Author

This is strange. Please provide me the win64 version.

@pliablepixels
Copy link
Member

pliablepixels commented Dec 23, 2017

Please download from here:https://drive.google.com/open?id=1oXjNxWzQTxrbNiakNUOUdac7wADXdZEe

Reporting logs:

  • start the APP
  • configure only the restricted account and set it up (don't switch to admin), make sure it works by going to some screen
  • Go to Help screen
  • After help screen loads, delete existing logs by tapping on "trash" icon on top right
  • Now go to events screen - this should re-create the problem of only 1 monitor
  • Now go to logs screen and export logs (cloud icon on top right)
  • Please email the full logs to me - please don't delete any lines (please don't post it here). When you export logs, passwords should be removed during the export process, but feel free to check before you email.

(Note that the above steps are to reduce the amount of logs so I can zero in better. Please don't go to any other screens)

thx

@tecufanujacu
Copy link
Author

I have just sent the log at your email address.

@pliablepixels
Copy link
Member

My apologies, I sent you a version that was not recording logs correctly. Can you please repeat the steps with this version. You should see more logs generated

https://drive.google.com/open?id=1TycNarB2LKRazIQJkcdXRzTVxIqTBg6P

@tecufanujacu
Copy link
Author

Just sent you the new log, sorry for the long delay.

@stale
Copy link

stale bot commented Mar 8, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Mar 8, 2018
@stale stale bot removed the stale label Mar 19, 2018
@stale
Copy link

stale bot commented May 18, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 18, 2018
@stale stale bot closed this as completed May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants