Skip to content

Time comparison isn't possible for encrypted timestamps, so since parameter isn't working in this case #223

@flyingapfopenguin

Description

@flyingapfopenguin

When encryption is enabled, the android app pushes all point data encrypted to the server, also the timestamp:

https://github.com/bilde2910/Hauk/blob/6b3d8dcbec0c4f6e64d5b72966c16d7fff35177f/android/app/src/main/java/info/varden/hauk/http/LocationUpdatePacket.java#L72C17-L72C85

Is the data encrypted or not, the refresh web logic request updates via the since parameter, which, in the encrypted case, is compare to the result of floatval called on encrypted data:

https://github.com/bilde2910/Hauk/blob/6b3d8dcbec0c4f6e64d5b72966c16d7fff35177f/backend-php/include/inc.php#L771C22-L771C59

This is not working, since floatval seems to return 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions