Multipart representation creation crashes when an "optional" field has no value specified
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wadllib |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Adding this line to one of the sample WADL files will make the tests fail.
=== modified file 'src/wadllib/
--- src/wadllib/
+++ src/wadllib/
@@ -12,6 +12,7 @@
<request>
<param style="plain" name="text_field" required="true" />
+ <param style="plain" name="optional_
<param style="plain" name="binary_field" type="binary"
The code in bind() tries to get a value for every single parameter defined in the representation, even optional ones. If you didn't specify a value for the parameter, bind() crashes.
This should be simple to fix.
Changed in wadllib: | |
status: | New → Fix Released |