Integer field of Code Sources cannot be empty

Bug #106231 reported by Samuel Schluep
4
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Undecided
Unassigned

Bug Description

If an integer parameter field in a Code Source that is not required is left empty an error occurs when the Code Source is executed:

[external source element is broken]
error message: invalid literal for int():

It seems, that SilvaExternalSources tries to convert the empty field, either None or an empty string, to an integer and this operation fails.

For example the dLCMS Code Source ms_video has two integer fields, width and height, that are not required. For the moment I have changed the integer fields in ms_video to StringFields. This solves the problem at the moment.

Changed in silva:
assignee: nobody → aaltepet
Revision history for this message
Andy Altepeter (aaltepet) wrote :

Changed _cast_value to return None if there is no value for the Integer Field.

Changed in silva:
milestone: none → 2.1
status: New → Fix Committed
Changed in silva:
assignee: aaltepet → nobody
Changed in silva:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.