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
Describe the bug
The value for a RestListParameterValue Parameter is missing in Remote Access API ("../api/") responses. The parameter 'name' is shown but no 'value' element is present.
To Reproduce
Steps to reproduce the behavior:
Configure a project to use a RestListParameter parameter.
Generate a run/Build the project.
Check the Remote Access API response (<jenkins_url>/<project>/<build#>/api/xml , <jenkins_url>/<project>/<build#>/api/json, etc.)
Note the absence of a value in the response.
Expected behavior
The value of the parameter to be exposed to API requests.
Screenshots
Excerpt from the /api/xml response for a run of an example project; note the absence of a value:
Versions (please complete the following information):
Jenkins: 2.361.4
Plugin: 1.6.3
Browser: Firefox, Chrome (any really)
Additional context
Given that the information is saved to the build.xml and is shown properly on the /parameters page, this should be an oversight(?)
Guessing now...Is it possible the issue is the fact the @Exported annotation is still on the value field rather than the getValue method? As part of #85, value was shifted to private and the value.jelly file was adjusted to use the getValue method, but the annotation was not moved/changed.
The text was updated successfully, but these errors were encountered:
Thank you for the bug report! Interesting use case, and certainly nothing I had on my radar.
Also very appreciate the your extra reteach and analysis!
Not sure when I will get to fixing it, especially since I want to re-write the plugin from scratch eventually.
Describe the bug
The value for a RestListParameterValue Parameter is missing in Remote Access API ("../api/") responses. The parameter 'name' is shown but no 'value' element is present.
To Reproduce
Steps to reproduce the behavior:
<jenkins_url>/<project>/<build#>/api/xml
,<jenkins_url>/<project>/<build#>/api/json
, etc.)Expected behavior
The value of the parameter to be exposed to API requests.
Screenshots
![image](https://user-images.githubusercontent.com/119326484/204303025-6031f669-47ec-480b-b2df-c19491167752.png)
Excerpt from the /api/xml response for a run of an example project; note the absence of a
value
:Versions (please complete the following information):
Additional context
Given that the information is saved to the
build.xml
and is shown properly on the /parameters page, this should be an oversight(?)Guessing now...Is it possible the issue is the fact the
@Exported
annotation is still on the value field rather than the getValue method? As part of #85,value
was shifted to private and the value.jelly file was adjusted to use the getValue method, but the annotation was not moved/changed.The text was updated successfully, but these errors were encountered: