Skip to content

Azure Table Exception with persisting metadata #668

Description

@johncyril

Describe the bug

The Current implementation has an exception when persisting package metadata into an AzureTable

To Reproduce

Steps to reproduce the behavior:

  1. Using this version of BaGet: 'v0.3.0-preview5'

  2. Run this code: docker run --rm --name nuget-server -p 5555:80 --env-file baget.env -v "$(pwd)/baget-data:/var/baget" loicsharma/baget:latest [as per documentaiton]

  3. With these arguments:
    environment variables
    Database__Type=AzureTable
    Database__ConnectionString=DefaultEndpointsProtocol=https;AccountName=XXXXX;AccountKey=XXXXX;TableEndpoint=XXXX

  4. See error

Expected behavior

Package to be uploaded successfully with metadata in AzureTable

Screenshots

image

Additional context

It would appear that the Id property causes issues with serialization as this is a reserved keyword
Got the hint from this link

I have been able to fix this and will link this issue to a pull request #669

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