Page 1 of 2

1.20.1 pre-release available for testing

Posted: Wed Jan 26, 2005 10:26 pm
by zoneminder
I have put a pre-release 1.20.1 up in the usual place (just change the version from one of the other downloads).

I wonder if anyone who is having problems could check whether this addresses them or not. Also may you RPMers out there might want to just make sure you can build with this version.

This is not the final 1.20.1 and I do not recommend you install it unless checking one of the issues above.

These are the current fixes in 1.20.1

Removed dependency on RegExp in zm_config.cpp.
Added ZM_RAND_STREAM option, this adds a time code onto each stream to prevent it from being cached. I think this may have affected perceptions of whether some streams were working.
Made zms check OPT_AUTH before loading user details. This should fix the issue where streams did not work with authentication off.
Removed debug output to temp file in zm_xhtml.php.
Fixed user sql, added debug and wrapped in check for libcrypto in zm_user.cpp. This should correct bogus loading of user data which may have affected some people. You can also now just bump up the debug level to see what the auth strings being used are.
Allowed no .conf file to be present in zmupdate.pl. Ignore this, not working.
xhtml console now uses mobile group as it should.
Modified Username to be binary. You need to run the zmalter sql to change your Users table to disallow case-inseitive checking which may have been breaking some peoples streams.

Phil

Posted: Thu Jan 27, 2005 1:05 am
by rdmelin
Hi Phil,
I'll test it right away if I can find it. Not here:
http://www.zoneminder.com/fileadmin/dow ... 0.1.tar.gz

I'l try a few variations. :)

Ross

Posted: Thu Jan 27, 2005 8:01 am
by zoneminder
Whoops! Should be there now.

Phil

Posted: Thu Jan 27, 2005 3:06 pm
by rdmelin
On the livecd system, fresh install, I can now view streams. :)
I still cannot login if I set ZM_OPT_USE_AUTH.
ZM_AUTH_METHOD set to hashed or plain gets same result. Just return to the login screen.

Ross

Posted: Thu Jan 27, 2005 4:58 pm
by zoneminder
This is the only issue I have not been able to pin down. Other than checking the case is correct.

It's a bit of a long shot but perhaps you could edit zm.php and change the line

Code: Select all

import_request_variables( "GPC" );
to

Code: Select all

import_request_variables( "GPCS" );
I doubt it will make any difference but it possibly could. I'll try and get you something to debug the logins as well.

Phil

Works Great

Posted: Thu Jan 27, 2005 5:07 pm
by securiteaze
Great work Phil!
All streams are visible and I have yet to find any odd behaviour.
No more unusual log entries either.

Gentoo linux-2.6.9
mysql-4.0.22
apache-2.0.52
mod_php-4.3.10
php-4.3.10

A suggestion...

Posted: Thu Jan 27, 2005 5:35 pm
by Monty
Not to sound promiscuous, but in my experience in large PHP projects I've noticed that using import_request_variables over directly reading the $_REQUEST variable leaves you more open to 'oddness' occurring in your http post and get variables.

I know orginaly coming from a perl background when first I started using PHP I relied on the import_request_variables function as well. Then when I found out about the $_REQUEST variable, it made my life much much easier. Just in the fact of being able to call a foreach on all request variables to trim the input makes it invaluable in my mind.

But I guess it all boils down to personal preference.

Anyways great project you got going here, I'm really looking forward to seeing better time searching functionaly as I would like to setup a 50+ camera system, but can't justify using zoneminder without more "stupid" freindly searching for the end users... But now I'm getting off topic. Cheers Mate!

P.S. I have not been able to try this patch yet, but I like everyone else was unable to try the new version yet.

Posted: Thu Jan 27, 2005 6:48 pm
by zoneminder
Yes. I plan to phase out the import_request_variables when I can. When I started _REQUEST wasn't very widespread so I'd have had to have handcrafted one for older versions of PHP and when you include references in there it got a bit ugly.

Nowadays, it's rather simpler so I'll try and do it sooner rather than later.

Phil

Posted: Thu Jan 27, 2005 8:41 pm
by rdmelin
Phil,
I made the change to zm.php and no difference in the login problem.

Ross

Posted: Fri Jan 28, 2005 2:20 pm
by oskin
I try make rpm package - it is Ok.
As for Ross I have no such problem.

P.S.
$ wget http://www.zonemi....../zm-1.20.0.tar.gz
$ wget http://www.zonemi....../zm-1.20.1.tar.gz
$ tar zxf zm-1.20.0.tar.gz
$ tar zxf zm-1.20.1.tar.gz
$ diff -U 3 -N -r zm-1.20.0 zm-1.20.1 | grep '+++'
+++ zm-1.20.1/aclocal.m4 2005-01-27 10:59:29.000000000 +0300
+++ zm-1.20.1/configure 2005-01-27 10:59:35.000000000 +0300
+++ zm-1.20.1/configure.in 2005-01-27 10:59:21.000000000 +0300
+++ zm-1.20.1/db/Makefile.in 2005-01-27 11:00:47.000000000 +0300
+++ zm-1.20.1/Makefile.in 2005-01-27 10:59:33.000000000 +0300
+++ zm-1.20.1/scripts/Makefile.in 2005-01-27 11:00:44.000000000 +0300
+++ zm-1.20.1/src/Makefile.in 2005-01-27 11:00:07.000000000 +0300
+++ zm-1.20.1/web/Makefile.in 2005-01-27 11:00:42.000000000 +0300
$

I.e. in 1.20.0 errors too are corrected?.. :)

Posted: Fri Jan 28, 2005 6:39 pm
by Serg
zoneminder wrote:This is the only issue I have not been able to pin down. Other than checking the case is correct.
It's a bit of a long shot but perhaps you could edit zm.php and change the line

Code: Select all

import_request_variables( "GPC" );
to

Code: Select all

import_request_variables( "GPCS" );
I doubt it will make any difference but it possibly could. I'll try and get you something to debug the logins as well.
Phil
I have installed openssl.
Make Zoneminder have passed without mistakes.
I have edited import_request_variables ("GPC") - import_request_variables (" GPCS). But, using registration records which worked in version 1.19.5 (LiveCD 1.19.1 with update 1.19.5), I cannot Zoneminder login!

How enter in Zoneminder?

P.S. Zoneminder 1.20.1 works perfectly - I have checked up it with ZM_OPT_USE_AUTH=no

Serg

Posted: Fri Jan 28, 2005 8:25 pm
by cordel
zm-1.20.1-RC1.FC3.i386.rpm is up
ftp://cordel.no-ip.info/pub/
Cheers,
Cordel

Posted: Mon Jan 31, 2005 8:53 pm
by cordel
zm-1.20.1-RC3 is up on my ftp
Minor change in zm_actions.php for brightness, contrast... settings
Cheers,
Cordel

Posted: Tue Feb 01, 2005 7:56 am
by Serg
cordel wrote:zm-1.20.1-RC3 is up on my ftp
Minor change in zm_actions.php for brightness, contrast... settings
Cheers,
Cordel
There is a doubt, what this RPM will not be established on Mandrake 10.0 :?
But I shall try to establish it necessarily as soon as I shall find it on yours FTP. 8-)

Serg

P.S. There is no it there (ftp://cordel.no-ip.info/pub/)!

Posted: Tue Feb 01, 2005 8:10 am
by cordel
I have the source in the SRPMS dir for anyone whom wishes to try. Ross Might once we establish that all the issues with mandrake are ironed out. Can you connect to
ftp cordel.no-ip.info? I don't have it configured to play well with browsers for security. I got hacked really good about six months back and lost every thing on three machines so the server is set to paranoid :shock:
Cordel