Skip to content
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

Schema export content not JSON for master branch 0.8-SNAPSHOT. #672

Closed
whitingjr opened this issue Sep 22, 2023 · 2 comments
Closed

Schema export content not JSON for master branch 0.8-SNAPSHOT. #672

whitingjr opened this issue Sep 22, 2023 · 2 comments
Labels
type/bug Something isn't working

Comments

@whitingjr
Copy link
Collaborator

Describe the bug

Schema export produces file not containing JSON. Instead the content is [object Object].

To Reproduce

1 Create a new Schema, name: dummy, urn:dummy:0.1
2 Export schema to file system
3 inspect the contents of exported file

Version

423bde26bffd98542de7c49b485476461cd8cbb5

Java

17

OS

F38

Browser

FF117

@whitingjr whitingjr added the type/bug Something isn't working label Sep 22, 2023
@stalep
Copy link
Member

stalep commented Sep 25, 2023

Hm, so we have a test for that endpoint:
https://github.com/Hyperfoil/Horreum/blob/master/horreum-backend/src/test/java/io/hyperfoil/tools/horreum/svc/SchemaServiceTest.java#L213
We also push back the output of that call back to Horreum to make sure the json is correct. I verified that the output from that test is valid.
Do you mind checking if there is something wrong on the ui side?

@whitingjr
Copy link
Collaborator Author

You are right. This is a problem of the browser saving the file. The raw response from Horreum contains JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants