No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Current Development version likely to have breaking changes
Post Reply
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

Hi all.
Event list checkboxes disappeared after upgrading from 1.37.27~20221103182923-focal to 1.37.27~20221106074651-focal
Before:
20221103182923.png
20221103182923.png (29.31 KiB) Viewed 2049 times
After:
20221106074651.png
20221106074651.png (24.08 KiB) Viewed 2049 times
Not a big deal, but now there's no convenient way to delete events from UI.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by iconnor »

Thus far I am unable to reproduce this. Also unable to comprehend why it would happen. We don't seem to do anything WRT permissions in terms of whether that is visible.

I assume this is true across all monitors and also for the admin user?
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

Sure. All monitors, filter results etc.
It happened right after upgrade and no users are defined, no_auth is also on.
I downgraded to 20221103182923-focal but the problem persists. Maybe it's somewhere in config, please advise.

I have both versions installed on separate machines, and the "eventTable" is the same on the one with checkboxes and the one without, except:

Code: Select all

<th class="bs-checkbox " style="width: 36px; " data-field="toggleCheck"><div class="th-inner "><label><input name="btSelectAll" type="checkbox"><span></span></label></div><div class="fht-cell"></div></th>
is missing
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

This is really weird

1. I see checkboxes in Chrome opened in VNC session on ZM machine (Ubuntu)
2. I see no checkboxes using Chrome or Firefox on Windows machine.
3. I do see them using Edge on the same Windows machine. I also see them using "Private" and "Incognito" modes in Firefox and Chrome on that Windows machine.

So I ended up clearing all cookies for ZM url in Chrome and got my checkboxes back in Chome, untill I reopened it in Firefox, that broke checkboxes again in both browsers.

I cleared all cookies for ZM url in Firefox AND Chrome, and it was OK, all checkboxes are in place first time I open some event list.
BUT: (This I can reproduce on any machine (Windows, Ubuntu))
Until I refresh the page or change filter conditions. Simple F5 and no checkboxes again. Same behavior in both Chrome & Firefox. I think it's some cookie that's messing up. OK, I add ZM host to exceptions to block cookies from it. And all event tables stop to show at all. Great.
Last edited by MarsRover on Fri Nov 11, 2022 2:47 pm, edited 3 times in total.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by iconnor »

Yeah cookie are required. The javascript library that we use to generate the events list keeps it's state in cookies. I kinda think this is terrible.

Anyways, gives me a place to look. Stay tuned.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

Just to clarify:
It only happens with one ZM server that was updated from 20221103182923 to 20221106074651 (I'm not upgrading the rest in production without fix), and it persists for both versions even when I downgrade it back using the package zoneminder_1.37.27~20221103182923-focal_amd64.deb from https://launchpad.net/~iconnor/+archive ... d/24596029.
I guess some libraries are not downgraded, or some settings are not reverted.

Proved to be wrong guess, see UPD below
Last edited by MarsRover on Sat Nov 12, 2022 8:45 pm, edited 2 times in total.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

UPD: was able to reproduce the bug on ZM server 1.37.27~20221103182923-focal which was never upgraded to 1.37.27~20221106074651-focal
Cleared all cookies -> reload page with F5 (checkboxes are in place) -> F5 again - no checkboxes.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

UPD2: Same on 1.37.25~20221026131017-focal.
Used Chrome & Firefox browsers on 4 different Systems (Win7, Win10, Ubuntu Server 20.04 & Debian 11) to reproduce.
I don't have older ZM builds installed handy to check.

Looks like this bug is older than I thought.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

1.37.27~20221116103319-focal
problem persists
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

1.37.28~20221213124234-focal
problem is still here (reproducible exactly the same way as before)

+ another one. This system is a DVR setup and continuously recording.
click on daily (hourly, doesn't matter) events for a monitor:
no-events.png
no-events.png (14.04 KiB) Viewed 1451 times
clear "Start Date/Time" filter value:
enents-are-back.png
enents-are-back.png (28.34 KiB) Viewed 1451 times
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by iconnor »

New packages should fix the second issue.

The first one: I have seen from time to time when there is not enough width to display all columns. Try turning off some columns and see if it comes back.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

screenshots above are made from the same browser tab. when I clear StartDateTime filter all columns fit.
1.37.28~20221213164433-focal fixed that, thanks!

I always hide Analysis columns, since in my case Analysis is done by our own Neural Networks (they receive video streams directly from cameras), ZM is only recording pass-through streams.
Filter Results table takes less space than page width, about 80% of page, so there's planty of it.

Again, to reproduce:
1. clear cookies for ZM host
2. checkboxes are back!
3. do something (e.g. hide some fields)
4. refresh table (or better the whole page via F5) - no checkboxes
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

HNY!

1.37.28~20230102152527-focal amd64
Problem persists.
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by iconnor »

I think I have this fixed in todays build.
MarsRover
Posts: 22
Joined: Sat Apr 30, 2022 10:34 am

Re: No event list checkboxes after update to 1.37.27~20221106074651-focal from 20221103182923

Post by MarsRover »

confirmed fixed in 1.37.28~20230103192033-focal, thank you!
Post Reply