Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-6346

[DSG] Missing input validation in item creation forms/fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • RHODS_1.20.0_GA, RHODS_2.4.0_GA
    • UI
    • False
    • None
    • False
    • Release Notes
    • Testable
    • No
    • No
    • Hide
      == Unclear error message displays when using invalid characters to create a data science project
      When creating a data science project's data connection, workbench, or storage connection using invalid special characters, the following error message is displayed:

      ----
      the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: unexpected end of JSON input ({"apiVersion":"v1","kind":"Sec ...)
      ----
      The message fails to clearly indicate the problem.
      Show
      == Unclear error message displays when using invalid characters to create a data science project When creating a data science project's data connection, workbench, or storage connection using invalid special characters, the following error message is displayed: ---- the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: unexpected end of JSON input ({"apiVersion":"v1","kind":"Sec ...) ---- The message fails to clearly indicate the problem.
    • Known Issue
    • Done
    • No
    • Pending
    • None
    • Low

      Description of problem:

      when using some special characters, DS projects items fail to be created and the error message is not clear:

      the object provided is unrecognized (must be of type Secret): couldn't get version/kind; json parse error: unexpected end of JSON input ({"apiVersion":"v1","kind":"Sec ...)

      Example of special chars are ł (unicode hex 0142) or Ĥ (unicode hex 124). I guess kubernetes/ocp doesn't accept those characters. The ticket is to improve the error handling in this case and applying some input validation in the fields 

      The error message is from Data Connection creation form, but same is valid for workbench and storage creation. 

      Prerequisites (if any, like setup, operators/versions):

      a DS Project is created

      Steps to Reproduce

      1. create a data connection using in one of the fields a special character like ł (unicode hex 0142) or Ĥ (unicode hex 124)
      2. check the result

      Actual results:

      data connection creation fails with a Json error

      Expected results:

      data connection creation fails with a clear error message

      Reproducibility (Always/Intermittent/Only Once):

      Intermittent

      Build Details:

      RHODS v1.21.0-18 (will try with the newest as soon as possible)

      Workaround:

      Additional info:

            aballantyne Andrew Ballantyne
            rhn-support-bdattoma Berto D'Attoma
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: