Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2415

Import -> Web Service Source >> Source and View Model (REST) Parameter handling and parsing errors

XMLWordPrintable

    • Hide
      1. Generate new Teiid Project with no changes to the defaults.
      2. Right-Click on project => Import => Teiid Designer => Web Service Source >> Source and View Model (REST)
      3. New Button in REST Web Service Source => Next
      4. Parameters:
        Connection URL: "http://md5.jsontest.com/"
        Response Type "JSON"
        Security Type "None"
        • There is no way to define Parameters here
      5. Test connection succedes
      6. Ciick Finish
      7. The REST Web Service Source Selection Dialog shows the message
        No REST Response Files Selected for Import

        because the response is empty. To add the actual parameter click on Edit.

      8. Under Connection Properties there is an Add new Parameter button now. Click it and try to add a parameter with an underscore character in its name.
        It tells you <Missing message for key "AddParameterDialog_invalidParametersName" in: org.teiid.designer.datatools.ui.i18n>.
      9. Instead add parameter "text" with no default value and Type "Query".
        Once saved the error message
        "XML File Parsing Error"
        "Parsing Error: The markup in the document following the root element must be well-formed."

        is shown.

      10. Once again click Edit, select the "text"-Parameter in the listview and delete it using the Remove Parameter button. It does not matter whether you click Apply or Ok, the change to the parameter is not persisted.
      Show
      Generate new Teiid Project with no changes to the defaults. Right-Click on project => Import => Teiid Designer => Web Service Source >> Source and View Model (REST) New Button in REST Web Service Source => Next Parameters: Connection URL: "http: //md5.jsontest.com/" Response Type "JSON" Security Type "None" There is no way to define Parameters here Test connection succedes Ciick Finish The REST Web Service Source Selection Dialog shows the message No REST Response Files Selected for Import because the response is empty. To add the actual parameter click on Edit . Under Connection Properties there is an Add new Parameter button now. Click it and try to add a parameter with an underscore character in its name. It tells you <Missing message for key "AddParameterDialog_invalidParametersName" in: org.teiid.designer.datatools.ui.i18n> . Instead add parameter "text" with no default value and Type "Query". Once saved the error message "XML File Parsing Error" "Parsing Error: The markup in the document following the root element must be well-formed." is shown. Once again click Edit , select the "text"-Parameter in the listview and delete it using the Remove Parameter button. It does not matter whether you click Apply or Ok , the change to the parameter is not persisted.

      The import wizard for Web Service Source >> Source and View Model (REST) has various errors regarding the handling of parameters. The initial creation dialog New connection profile does not show buttons for addition or removal of parameters. The connection properties dialog displays the buttons, but the changes are not persisted.

      Furthermore there is a parsing error for the following JSON response:

      {
         "md5": "37a6259cc0c1dae299a7866489dff0bd",
         "original": "null"
      }
      

      Please see "Steps to reproduce" for further explanation.

        1. 2014-12-29_14-59-13.png
          2014-12-29_14-59-13.png
          81 kB
        2. new_connection_maximized.png
          new_connection_maximized.png
          62 kB
        3. new_connection_normal.png
          new_connection_normal.png
          63 kB
        4. out.webm
          2.02 MB

              rhn-engineering-tejones Edwin Jones
              wmitzel_jira Wladislaw Mitzel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: