IntegerField parameter in SilvaExternalSources is passed as unicode
I just found that if you create a CodeSource with an Integer parameter, this
won't be pass as an integer; it will be still a unicode string. If you iterating
a variable, which has the integer parameter as the higher limit, then you will
get a nice endless loop, which will cope the CPU of your server to the 100%.
Steps to reproduce:
1) Create a code source with an IntegerField as a parameter. Let's call it IntValue.
2) Then add the following script to the code Source:
Parameter List: IntValue
#Comment this out, then you won't get the endless loop
#IntValue = int(IntValue)
i = 1
while i <= IntValue:
i += 1
Call the external source in a SilvaDocument, then do a preview and wala, you got
an endless loop.
I tried to see if this bug was already solved in the next version of
fixes till version 0.13 and the current version used at the ETH is 0.14. Have
somebody here tested the newest Silva version?