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

INI: Elektra Removes Metadata #1687

Closed
sanssecours opened this Issue Nov 1, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@sanssecours
Contributor

sanssecours commented Nov 1, 2017

Description

It looks like Elektra removes metadata if we use INI as default storage plugin and store data using a cascading key.

Steps to Reproduce the Problem

  1. Configure Elektra with INI as default storage:

    mkdir build
    cd build
    cmake .. -GNinja -DPLUGINS='ALL' -DKDB_DB_FILE='default.ini' -DKDB_DB_INIT='elektra.ini' -DKDB_DEFAULT_STORAGE=ini
  2. Build Elektra:

    ninja
  3. Run the following commands:

    # Mount yamlcpp plugin to cascading namespace `/examples/yamlcpp`
    kdb mount config.yaml /examples/yamlcpp yamlcpp
    
    # Add a new key and some metadata
    kdb set /examples/yamlcpp/brand new
    kdb setmeta /examples/yamlcpp/brand comment "The Devil And God Are Raging Inside Me"
    kdb setmeta /examples/yamlcpp/brand rationale "Because I Love It"
    
    # Retrieve metadata
    kdb lsmeta /examples/yamlcpp/brand

Expected Result

#> comment
#> rationale

Actual Result

#> rationale

Additional Information

Everything works fine if we do not use cascading keys:

# Mount yamlcpp plugin to cascading namespace `/examples/yamlcpp`
kdb mount config.yaml user/examples/yamlcpp yamlcpp

# Add a new key and add some metadata to the new key
kdb set user/examples/yamlcpp/brand new
kdb setmeta user/examples/yamlcpp/brand comment "The Devil And God Are Raging Inside Me"
kdb setmeta user/examples/yamlcpp/brand rationale "Because I Love It"

# Retrieve metadata
kdb lsmeta user/examples/yamlcpp/brand
#> comment
#> rationale

System Information

  • Elektra Version: master

@sanssecours sanssecours added this to the 1.0.0 milestone Nov 1, 2017

@markus2330 markus2330 modified the milestones: 1.0.0, 0.8.21 Nov 1, 2017

@markus2330

This comment has been minimized.

Show comment
Hide comment
@markus2330

markus2330 Nov 1, 2017

Contributor

Thank you for reporting!

Contributor

markus2330 commented Nov 1, 2017

Thank you for reporting!

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 1, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 1, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 1, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 2, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 3, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 4, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

sanssecours added a commit to sanssecours/elektra that referenced this issue Nov 8, 2017

YAML CPP: Use non-cascading keys in MSR example
This way YAML CPP handles all the metadata. If we use cascading keys,
then the example would fail if we use INI as default storage. If you
want to learn more, please check out issue ElektraInitiative#1687.

@markus2330 markus2330 modified the milestones: 0.8.21, 0.8.22 Dec 22, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 27, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 29, 2017

sanssecours added a commit to sanssecours/elektra that referenced this issue Dec 31, 2017

@markus2330 markus2330 closed this in 239893f Jan 2, 2018

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