You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the bug?
ML Model Registration endpoints are failing due to a breaking change from the core. The current implementation allows optional path parameters (model_id and version) in endpoints like /_plugins/_ml/models/{model_id}/{version}/_register and /_plugins/_ml/models/_register. However, the core now requires all defined path parameters to be consumed, making the current optional parameter handling invalid (ref).
The check for the parameters was introduced in 1.0.0-alpha1 version, specifically in this commit.
How can one reproduce the bug?
Running this in dev tools:
POST /_plugins/_ml/models/xv-F5pMBrJdjeJHHBXXV/1.0.0/_register
What is the expected behavior?
All defined path parameters should be properly consumed by the REST handler. The registration request should be processed without throwing IllegalArgumentException about unrecognized parameters.
The text was updated successfully, but these errors were encountered:
nathaliellenaa
changed the title
[BUG] ML Model Registration endpoints fail due to parameter requirements
[BUG] ML Model Registration endpoints fail due to parameter requirements check
Dec 23, 2024
What is the bug?
ML Model Registration endpoints are failing due to a breaking change from the core. The current implementation allows optional path parameters (
model_id
andversion
) in endpoints like/_plugins/_ml/models/{model_id}/{version}/_register
and/_plugins/_ml/models/_register
. However, the core now requires all defined path parameters to be consumed, making the current optional parameter handling invalid (ref).The check for the parameters was introduced in 1.0.0-alpha1 version, specifically in this commit.
How can one reproduce the bug?
Running this in dev tools:
Resulted in this error:
What is the expected behavior?
All defined path parameters should be properly consumed by the REST handler. The registration request should be processed without throwing IllegalArgumentException about unrecognized parameters.
The text was updated successfully, but these errors were encountered: