openmediavault / openmediavault

openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. Thanks to the modular design of the framework it can be enhanced via plugins. openmediavault is primarily designed to be used in home environments or small home offices.
https://www.openmediavault.org
Other
5.07k stars 475 forks source link

Issue #1751: Handle empty objects correctly #1757

Closed votdev closed 4 months ago

votdev commented 4 months ago

Note, the whole handling of the params argument of the RPC implementation is faulty, but it can not be fixed without breaking existing code and behavior in core and all existing plugins. Therefore, the current implementation will be retained, even if it is wrong. The error is the processing of the params argument. This is not converted and processed as PHP objects but converted into an associative array. As a result, the information is lost as to whether it is an empty object or an empty array.

Relates to: https://github.com/openmediavault/openmediavault/issues/1751