-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
modRestService and empty XML tags #13132
Comments
Do we have any knowledge of internal logic currently relying on this behavior? |
I haven't. With the current code it is not possible to update a record value with an empty value using the default put method. The value would contain Those values have to be handled by a beforePut method
|
Do you have an example model (field/data type) this can be tested with? Looking to reproduce / verify, though I've only ever used JSON w/ modRestService. |
I was able to verify this report using a Updating via My vote is that this is a bug 🐛 |
Summary
Bug or feature: Empty XML tags are converted into empty arrays in _xml2array method.
Step to reproduce
POST/PUT an empty tag to the modRestService
Observed behavior
The value is converted into an empty array.
Expected behavior
I would suggest, that it should be converted into null or into an empty string. But that's a design decision.
The text was updated successfully, but these errors were encountered: