Skip to content

[Bug] Binary Data Misinterpreted as UTF-8 in Zenoh Storage for InfluxDB 2 #302

@czarekk215

Description

@czarekk215

Describe the bug

When attempting to store binary data in Zenoh storage configured for InfluxDB 2, the system incorrectly interprets the binary data as UTF-8. If the binary data does not represent a valid UTF-8 string, the operation fails, and the database stores an invalid record. The stored record is a base64-encoded string indicating that it failed to interpret the data as UTF-8.

To reproduce

  1. Set up Zenoh storage configured for InfluxDB.
  2. Create a publisher and use it to write a binary value (e.g., a value that is not a valid UTF-8 string).
  3. Try to retrieve the value using:
    • Zenoh client.
    • InfluxDB client by querying: SELECT * FROM path/to/something.

System info

  • Operating System: Ubuntu 22.04 LTS (Jammy Jellyfish)
  • Architecture: AMD64 (x86_64)
  • Zenoh Version: 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions