Uploaded image for project: 'mod-customfields'
  1. mod-customfields
  2. MODCFIELDS-36

Text field can be created without requried "textField" attribute

    XMLWordPrintable

Details

    • eHoldings Sprint 81
    • 2
    • Spitfire

    Description

      It is possible to create a custom field with type "TEXTBOX_SHORT" or "TEXTBOX_LONG" without specifying "textField" attribute. In this case when we try to add custom field we will get an NPE.
      POST /custom-fields with following body passes validation and successfully creates custom text field.

      {
        "name": "Department",
        "id": "department",
        "type" : "TEXTBOX_SHORT",
        "visible": true,
        "required": true,
        "helpText": "Provide a department"
      }
      

      This issue might also happen for type "SINGLE_CHECKBOX" and "checkboxField" attribute.

      Expected behaviour:

      Above request should return an error if "textField" attribute is missing.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                psmagin Pavlo Smahin
                andrii.paias Andrii Paias
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases