Skip to content

Off-chain DRep metadata image issue #1966

@Scitz0

Description

@Scitz0

Versions
The db-sync version (eg cardano-db-sync --version): 13.6.0.5
PostgreSQL version: 17

Build/Install Method
The method you use to build or install cardano-db-sync: binary from GitHub

Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): systemd

Problem Report

1.
The processing of off-chain DRep metadata (CIP-119), when image is in base64 format instead of URL, data put in the off_chain_vote_drep_data table for image_url field seems to trim off the data URI prefix part of the contentUrl field from json (json->'body'->'image'->>'contentUrl'). i.e. the data:content/type;base64, part.

2.
For the same table (off_chain_vote_drep_data), I have seen duplicate rows for the same off_chain_vote_data_id.

For example, this query yields three identical rows for me (mainnet):
select * from off_chain_vote_drep_data where given_name = 'Elite';

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