Closed josteinaj closed 8 years ago
What does <item value=""/>
mean?
It's how we pass values to options when we submit jobs.
<option name="stylesheets">value</option>
is a shorthand for <option name="stylesheets"><item value="value"/></option>
for when there's only one value.
When the value is an empty string though I force the addition of the item
element since otherwise the <option/>
would self-close, thus removing the text node, and thus essentially undeclaring the option which is not the intention.
I think the solution to this bug is to remove all files with an empty href when parsing the values from the file widget. I'm going to try that now, hopefully I get it done this evening.
As of v2.1 the handling of empty options have changed. Before, an empty option were interpreted as an "undefined" option, and hence it was not submitted in the job request to the engine. After v2.1, I've changed it so that empty options are actually submitted in the job request. I'm getting the error below when submitting a job to the nlb:dtbook-to-pef script and not providing anything on the "stylesheet" file input widget. This might be an issue only with file input widgets actually...