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

Problem with OData proxy configuration

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.3, 9.3.7, 10.1.1, 10.2
    • None
    • OData
    • None
    • Hide
      • Modified the web.xml in the teiid-olingo-odata4.war located in the <jbosshome>\modules\system\layers\dv\org\jboss\teiid\main\deployments folder

      <init-param>
      <param-name>proxy-base-uri</param-name>
      <param-value>${teiid-odata-proxy-base-uri}</param-value>
      </init-param>

      • Added the following lines to the standalone-teiid.xml file

      <system-properties>
      <property name="teiid-odata-proxy-base-uri" value="http://proxyurl.net"/>
      </system-properties>

      Show
      Modified the web.xml in the teiid-olingo-odata4.war located in the <jbosshome>\modules\system\layers\dv\org\jboss\teiid\main\deployments folder <init-param> <param-name>proxy-base-uri</param-name> <param-value>${teiid-odata-proxy-base-uri}</param-value> </init-param> Added the following lines to the standalone-teiid.xml file <system-properties> <property name="teiid-odata-proxy-base-uri" value="http://proxyurl.net"/> </system-properties> Access vbd via odata url http://proxyurl.net/odata4/babynames/file/$metadata

    Description

      When configuring the proxy-base-uri parameter in the web.xml in the teiid-olingo-odata4.war located in the <jbosshome>\modules\system\layers\dv\org\jboss\teiid\main\deployments folder the following error is generated when trying to access a vdb via the OData protocol

      2018-01-26 11:50:22,396 WARN [org.teiid.ODATA] (default task-2) TEIID16052 Unable to process odata request due to: The URI is malformed.: Unexpected start of resource-path segment.
      at org.apache.olingo.server.core.uri.parser.ResourcePathParser.leadingResourcePathSegment(ResourcePathParser.java:236)
      at org.apache.olingo.server.core.uri.parser.ResourcePathParser.parsePathSegment(ResourcePathParser.java:88)
      at org.apache.olingo.server.core.uri.parser.Parser.parseUri(Parser.java:234)
      at org.apache.olingo.server.core.ServiceDispatcher.execute(ServiceDispatcher.java:93)
      at org.apache.olingo.server.core.OData4HttpHandler.process(OData4HttpHandler.java:67)
      at org.teiid.olingo.web.ODataServlet.service(ODataServlet.java:39)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            dvallabh_doi Divyesh Vallabh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: