Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5573

Ending a teiid odata url with a slash causes a 'Malformed URI' error


    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.1.1
    • Fix Version/s: 11.1.2, 12.0, 11.2.2
    • Component/s: OData
    • Labels:


      As discussed on #teiid (IRC), the URI used to access a teiid odata service fails if a '/' is appended to it, eg.


      This results in this error (in Chrome):

      <error xmlns="http://docs.oasis-open.org/odata/ns/metadata">
        <message>The URI is malformed.</message>

      Removing the '/' works correctly.

      This appears to be an underlying problem with the olingo4 libraries since the tutorial when implemented suffers the same error.

      However, the odata.org reference implementation does handle the slash correctly.

      Why does this matter?
      The camel-odata connector uses the olingo4 libraries and positively adds a '/' when forming the full URI to read data. This camel connector was originally created using the reference odata implementation as test data so unsurprising that it assumes the extra '/'.

      Who should fix what?
      Probably, the olingo4 libraries should be fixed to correctly handle the extra '/'. However, that would require both teiid and the camel odata-connector picking up a new version of the library, which may well take some time. From the discussion on IRC, it is possible to workaround this in teiid with the use of 'servlet filters'.

      Tested version
      The version of teiid actually tested is 9.1.1 but would imagine that later versions may also be affected given it is ultimately a problem with the olingo4 libraries.

        Gliffy Diagrams




              • Assignee:
                shawkins Steven Hawkins
                phantomjinx Paul Richardson
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: