Hi Brian,
>
> sorry, just incredibly busy at the moment — didn’t even get a break
> over the weekend
>
>
> On 14 Mar 2005, at 2:24 pm, Shane Michael Dempsey wrote:
> >
> > Hi Brian,
> > A few comments about Brian’s installation of our Secure Networks
> > “Camera
> > Viewer” web application.
> >
> > 1) He can’t change the access rights for the camera using the
> > administration
> > pages.
>
> Yes he can, and he has done. Or his engineer has. The superuser creates
> locations, adds cameras and users to them and nominated a location
> administrator for each one. Log in with user/pass localadmin/localadmin
> and you’ll see the changes he’s made.
OK, well he didn’t know about that himself.. He’s been trying to make those
changes using the admin/admin user which obviously enough isn’t working.
I’ll let him know..
>
> > 2) In attempting to fix a problem with the current system. Don’t
> > reinstall
> > your files on the server. The ownership of the files used by the run
> > script
> > in the /etc/init.d dir should be user: nobody & group: daemon. Your
> > script
> > copies over them with files that are owned by brian/user..
>
> What script ? There is no install script. The PHP application is just a
> tarball . It doesn’t touch any log files. If these are being changed
> its most likely down to Brian and his prize winning engineer.
Shit.. well I’ve changed their ownership 3 times now and somebody keeps
changing them back. Getting a bit pissed off .. I think I’ll write a cron
job to change the ownership back every few minutes.
>
> > 5) My stream server is receiving requests for a camera with id 4. It
> > finds
> > the camera in the database but there’s an access restriction. This is
> > most
> > confusing . from reading the code in the server again I’m not sure why
> > this
> > is the case. The database has the correct session with seemingly the
> > correct
> > accdata. The user (testuser) IS authorised to use that camera. The java
> > server isn’t telling me it can’t connect to the database.. I’m sure
> > there’s
> > something wrong as we keep returning a null URL but I’m not quite sure
> > what
> > it is yet. I’d appreciate it if you could take a look.
> >
>
> From the video servers log, it throws a null pointer exception. Can you
> take a look at this running in the debugger and see where that occurs ?
> I’m kinda pushed on time at the moment, it’ll be later on this evening
> before I get to look at it in any detail.
>
It has thrown this ONCE. The rest of the time it’s not throwing an
exception, just failing to parse the accdata for some reason that I’m not
sure of and outputting the aforementioned SECURITY RESTRICTION.. .
Check the code for HTTPRequestHandler line 163. It only throws this error
when
1) it can’t contact the database
2) it fails to parse the accdata..
3) the accdata says that the camera can’t be accessed..
Hhmm.. I’ll run a few more tests on the box tonight..
regards,
…shane