Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Modules property is not serialized as well #55

Closed
xpicio opened this issue Nov 11, 2014 · 4 comments
Closed

Modules property is not serialized as well #55

xpicio opened this issue Nov 11, 2014 · 4 comments

Comments

@xpicio
Copy link
Contributor

xpicio commented Nov 11, 2014

Hello, it's seems Modules property on JsonPacket is not serialized like sentry specification require. Instead of

{
    "modules": {
        "my.module.name": "1.0"
    }
}

Modules is serialized as

{
    "modules": [
        { "Name": "my.module.name", "Version": "1.0" }
    ]
}

Here xpicio@60dd480 can you find my fix. Is it my bad or a bug ?

Bye Bye

@asbjornu
Copy link
Contributor

Hey. I've merged your changes into a new branch called modules-as-dictionary that you might want to take a look at. I had to build the dictionary manually, since it can't contain duplicates. Furthermore, the tests are failing because the server responding with (403) Forbidden. I guess that's related to the modules change, but I'm not sure.

@xpicio
Copy link
Contributor Author

xpicio commented Nov 12, 2014

Hello. It's seems ok. I tested it on my sentry 6.4.4 server installation and the "Versions" section is rendered as well. Anyway i checked your code to build the dictionary and i was building it in the same way.

test-modules-as-dictionary

@asbjornu
Copy link
Contributor

Yea, it was the serialization test that failed because the generated schema was based on the old (wrong) modules layout. I've regenerated the schema and the tests now pass.

@asbjornu
Copy link
Contributor

This has been merged into the develop branch and will be merged to master as soon as possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants