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

API: generating a category with parent no longer working with version 1.10.6 #512

Closed
electronics4fun opened this issue Feb 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@electronics4fun
Copy link

Describe the bug
Using the API for generating a category is no longer working with version 1.10.5 and 1.10.6.
Is working with version 1.10.4

To Reproduce
transfered json in "/api/categories" with POST:
{"name": "Terminals", "parent": "/api/categories/3"}
(categorie id 3 is valid)

(Un)Expected behavior
call resonses with error code 500 (Internal Error)

Additional context
docker image was used

@electronics4fun electronics4fun added the bug Something isn't working label Feb 6, 2024
@electronics4fun electronics4fun changed the title API: generating a category with parent no longer working with version > 1.10.4 API: generating a category with parent no longer working with version 1.10.6 Feb 6, 2024
jbtronics added a commit that referenced this issue Feb 6, 2024
…created/edited via API

This fixes issue #512.
The error was introduced when trying to allow the modification of attachments/parameters throught the parent element. We need a seperate write scope to the element, or we end up with an infinite loop.
@jbtronics
Copy link
Member

This is fixed with Part-DB 1.10.7

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

No branches or pull requests

2 participants