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

Add time delta for WSSE for most Axis cams #79

Open
stalkerg opened this issue Jul 5, 2021 · 3 comments
Open

Add time delta for WSSE for most Axis cams #79

stalkerg opened this issue Jul 5, 2021 · 3 comments

Comments

@stalkerg
Copy link

stalkerg commented Jul 5, 2021

Basically, if your time will not strictly the same as the camera the WSSE will be wrong with just the current time.
Algorithm to solve it next:

  1. You should try to connect to the camera without auth and get devicemgmt.GetSystemDateAndTime
  2. If it fails try to use existence username/password to get GetSystemDateAndTime.
  3. Calculate the time delta between your time and camera and apply it to "created" in WSSE for each request.

Most AXIS and some ROBOTIX cameras will have issues without it. (I have it)

@stalkerg stalkerg changed the title You should add time delta for WSSE for most Aaxis cams You should add time delta for WSSE for most Axis cams Jul 5, 2021
@stalkerg
Copy link
Author

This project is still alive?

@jplatte jplatte changed the title You should add time delta for WSSE for most Axis cams Add time delta for WSSE for most Axis cams Nov 25, 2021
@jplatte
Copy link
Contributor

jplatte commented Nov 25, 2021

We're mostly just focused on other things currently. But maybe now that you commented again somebody who knows more about ONVIF will reply in the next days.

@DmitrySamoylov
Copy link
Contributor

@stalkerg Thanks for the feedback. Can you give more details about pre-conditions for this bug? What is the delta between local time and camera time in your case? Do you specify explicitly to use UsernameToken auth, or it is just "digest" auth is disabled somehow in the camera?

From my understanding clocks at the server and client should be the same and we shouldn't calculate the server's time at the client. Are there any mentions of this in ONVIF or WS spec?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants