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

Changing parameter types in REST connection results in wrong URL

    XMLWordPrintable

Details

    • Hide
      1. File -> New -> Other -> Connection Profile -> Web Services Data Source (REST)
      2. set Connection URL to
        http://localhost:8000
      3. add two new parameters of type Query, p1 and p2 with default values v1 and v2
      4. change the p1 parameter's type to URI
      5. notice the Preview URL does not reflect the change
      6. click Test Connection
      7. notice the Preview URL is now
        http://localhost:8000/v1?p2=v2/v1

        (wrong)

      8. change the type back to Query, click Test Connection
      9. notice the Preview URL is now
        http://localhost:8000?p1=v1&p2=v2&rest_param%3Ap1=v1
      10. try to delete both parameters
      Show
      File -> New -> Other -> Connection Profile -> Web Services Data Source (REST) set Connection URL to http://localhost:8000 add two new parameters of type Query, p1 and p2 with default values v1 and v2 change the p1 parameter's type to URI notice the Preview URL does not reflect the change click Test Connection notice the Preview URL is now http://localhost:8000/v1?p2=v2/v1 (wrong) change the type back to Query, click Test Connection notice the Preview URL is now http://localhost:8000?p1=v1&p2=v2&rest_param%3Ap1=v1 try to delete both parameters

    Description

      Changing the type of a parameter in the REST connection profile causes the generated URL to be wrong. Also, the Preview URL is not updated after changing the type, only after some other action (testing connection, changing the default value etc).
      Furthermore, removing the paramters does not work if the type of the parameter has been changed.

      Attachments

        Activity

          People

            rhn-engineering-tejones Edwin Jones
            asmigala@redhat.com Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: