Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-4334

Error creating in_range constraint for non integer properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • London Release
    • London Release
    • None
    • None

      To reproduce:

      • Checkout a VFC
      • Edit a property of the VFC of any comparable type except integer (e.g. string, float, any scalar type...)
      • Add an 'in_range' constraint with values appropriate to the type
      • Error is thrown (except if the provided values can be parsed as in integer values)

      The methods convert and isValueTypeValid in ToscaType handle in_range in the same way as an integer even though in_range can be used for non integer types

       

      This is also causing upgrade failure as the deserialization of the data types during sdc-be start up fails due to existing data types with in_range float values

            JvD_Ericsson JEFF VAN DAM
            JvD_Ericsson JEFF VAN DAM
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: