-
Notifications
You must be signed in to change notification settings - Fork 486
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
Settings API broken? #6173
Comments
This is the code that has stopped working, in SettingsServiceBean:
It's still working for creating a new setting; failing when modifying an existing one. I'm assuming it used to work because the "name" was designated to serve as the @id of the table. Now that the constraint has been removed, EJB tries to create a new entry in the table. But, since there is a database index, unique on the combination of name+value+lang - it ends up throwing the exception above. If we were to choose to fix this without reverting the original PR, we would simply modify the method above (and any similar methods there) to first look up the setting that the method wants to update, and only create a new one if it does not exist... |
It looks like you can no longer modify an existing setting via the API:
curl -X PUT -d FAKE http://localhost:8080/api/admin/settings/:DoiProvider
throws a 500; the error in the server log:
I am assuming this is the result of merging the PR #6042 - where we made the settings localize-able.
The text was updated successfully, but these errors were encountered: