ZoneMinder / zmNinja

High performance, cross platform ionic app for Home/Commerical Security Surveillance using ZoneMinder

Home Page:http://zmninja.zoneminder.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect 'cgi-bin' path in settings

gcsprojects opened this issue · comments

The version of zmNinja you are reporting:

1.6.009 (Android)
1.7.004 (Windows)

The version and OS of ZoneMinder you are using:

example: 1.36.33, Rocky Linux 8.8

Platform zmNinja is running on

Android 14
Desktop - Windows 11

Did you build the package from source code yourself?
No

Describe the bug
When setting up zmNinja, the wizard fails to connect

Checking in the Settings Menu, I can see the following values

ZM portal url : https://cctv.mydomain.tld/zm
path to cgi-bin: https://cctv.mydomain.tld/zm/cgi-bin
ZM api url: https://cctv.mydomain.tld/zm/api

In Expert mode, when you enter your ZoneMinder URL it (incorrectly) autocompletes the cgi-bin field with the portal URL you entered, with /cgi-bin added to the end

The correct URL for 'path to cgi-bin' should be: https://cctv.mydomain.tld/cgi-bin-zm
This is as shown in /etc/httpd/conf.d/zoneminder.httpd.conf:

ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"

Once I manually edit the path to match the conf file, it connects successfully

Yes we should be able to auto detect this. On the todo list.