[#13126] - Scheduled job parameters not loaded when editing

Category:
Bug report
Priority:
Urgent
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:
0

When editing a schedule job input control values are not filled with the job parameter.
Every input control shows the default value.
I tested it with the latest Firefox and Chrome.
A practical example, I have a report that's scheduled many times, every job has different parameter values.
If I edit one job the parameters are displayed with the default values for every job despite the job report is correctly configured.

Developer tools confirm this.

The response to the call that loads the job
GET http://<server>/jasperserver/rest_v2/jobs/5250?_=1601617687643
returns a json with the correct parameters
{
"id": 5250,
"version": 7,
"username": "jasperadmin",
"label": "<label>",
"creationDate": "2018-11-14T11:28:20.612+01:00",
"trigger": {
"calendarTrigger": {
"id": 5247,
"version": 0,
"timezone": "Europe/Rome",
"startType": 1,
"misfireInstruction": 0,
"minutes": "4",
"hours": "7,13",
"daysType": "ALL",
"monthDays": "",
"months": {
"month": [
"1",
"10",
"11",
"12",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9"
]
}
}
},
"baseOutputFilename": "<outfile>",
"outputLocale": "it_IT",
"outputTimeZone": "Europe/Rome",
"source": {
"reportUnitURI": "<report-uri>",
"parameters": {
"parameterValues": {
"Magazzino": [
"2"
],
"DescReparto": [
"PRESSOPIEGA"
],
"Media": [
"2400"
],
"Reparto": [
"GA06"
],
"TipoValore": [
"T"
],
"Riferimento": [
"C"
],
"GG_RIF": [
"5"
]
}
}
},
"outputFormats": {
"outputFormat": [
"PDF"
]
},
"repositoryDestination": {
"folderURI": "/Report/Produzione",
"id": 5248,
"overwriteFiles": false,
"sequentialFilenames": false,
"version": 7,
"saveToRepository": false,
"usingDefaultReportOutputFolderURI": false,
"outputFTPInfo": {
"userName": "anonymous",
"type": "ftp",
"port": 21,
"implicit": true,
"pbsz": 0,
"propertiesMap": {}
}
},
"mailNotification": {
"bccAddresses": {
"address": []
},
"ccAddresses": {
"address": []
},
"toAddresses": {
"address": [
""
]
},
"version": 7,
"id": 5249,
"includingStackTraceWhenJobFails": false,
"messageText": "",
"resultSendType": "SEND_ATTACHMENT",
"skipEmptyReports": false,
"skipNotificationWhenJobFails": false,
"subject": "<subject>"
}
}

The call to set the input controls fails
GET http://<server>/jasperserver/rest_v2/reports/<report-path>/inputControls/selectedValues
{
"selectedValue": [
{
"id": "DescReparto",
"options": [
{
"label": "~NULL~",
"value": "~NULL~"
}
]
},
{
"id": "Riferimento",
"options": [
{
"label": "~NULL~",
"value": "~NULL~"
}
]
},
{
"id": "GG_RIF",
"options": [
{
"label": "",
"value": ""
}
]
},
{
"id": "Media",
"options": [
{
"label": "",
"value": ""
}
]
},
{
"id": "TipoValore",
"options": [
{
"label": "---",
"value": "~NOTHING~"
}
]
},
{
"id": "Reparto",
"options": [
{
"label": "~NULL~",
"value": "~NULL~"
}
]
},
{
"id": "Magazzino",
"options": [
{
"label": "~NULL~",
"value": "~NULL~"
}
]
}
]
}

Because of this, the job parameter values must setted every time although they are lost on save.

v7.8.0
Schedules
m.longo's picture
63
Joined: Oct 24 2012 - 4:42am
Last seen: 3 days 10 hours ago
Feedback
randomness