Petals BC REST

French characters, space or path separator are not supported in resource identifiers

Details

  • Type: Task Task
  • Status: New New
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.3.0-BC
  • Fix Version/s: 2.5.0-BC
  • Component/s: Provider mode
  • Security Level: Public
  • Description:
    Hide

    French characters, space or path separator are not supported in resource identifiers.

    The following XML payload:

    <ns3:consulter xmlns:ns3="http://petals.ow2.org/bc/rest/unit-test/ged">
        <ns3:library>My Documents</ns3:library>
        <ns3:reference>my/identifier</ns3:reference>
    </ns3:consulter>

    with the following URI template:

    GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata

    generates the following error:

    2020/03/17 15:06:41,010 GMT+0100 MONIT [org.ow2.petals.component.framework.UnderTestWithDefaultConf] :  traceCode = 'provideExtFlowStepBegin', flowInstanceId = '864f5be0-6858-11ea-b4d1-0242c26ca283', flowStepId = '866fb520-6858-11ea-b4d1-0242c26ca283', flowPreviousStepId = '8653a1a0-6858-11ea-b4d1-0242c26ca283', requestedURL = 'http://localhost:10080/unit-tests/library/My%20Documents/document/my%2Fidentifier/metadata'
    2020/03/17 15:06:41,239 GMT+0100 MONIT [org.ow2.petals.component.framework.UnderTestWithDefaultConf] :  traceCode = 'provideExtFlowStepFailure', flowInstanceId = '864f5be0-6858-11ea-b4d1-0242c26ca283', flowStepId = '866fb520-6858-11ea-b4d1-0242c26ca283', failureMessage = 'A business error occurs', httpStatus = '[500 Server Error]'
    2020/03/17 15:06:41,239 GMT+0100 FINE [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : HTTP code returned: HTTP/1.1 500 Internal Server Error
    2020/03/17 15:06:41,239 GMT+0100 FINE [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : HTTP response content-type 'null' processed as 'auto': 
    2020/03/17 15:06:41,239 GMT+0100 WARNING [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : Can't set JBI Exchange content from HTTP Response
    javax.jbi.messaging.MessagingException: Error 500 Internal Server Error
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration.doBuildJBIReply(RESTRequestConfiguration.java:572)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration.buildJBIReply(RESTRequestConfiguration.java:518)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration$Callback.completed(RESTRequestConfiguration.java:299)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration$Callback.completed(RESTRequestConfiguration.java:1)
    	at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:123)
    	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:181)
    	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:439)
    	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:329)
    	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
    	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
    	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
    	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
    	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
    	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
    	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
    	at java.lang.Thread.run(Thread.java:748)
    Show
    French characters, space or path separator are not supported in resource identifiers. The following XML payload:
    <ns3:consulter xmlns:ns3="http://petals.ow2.org/bc/rest/unit-test/ged">
        <ns3:library>My Documents</ns3:library>
        <ns3:reference>my/identifier</ns3:reference>
    </ns3:consulter>
    with the following URI template:
    GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata
    generates the following error:
    2020/03/17 15:06:41,010 GMT+0100 MONIT [org.ow2.petals.component.framework.UnderTestWithDefaultConf] :  traceCode = 'provideExtFlowStepBegin', flowInstanceId = '864f5be0-6858-11ea-b4d1-0242c26ca283', flowStepId = '866fb520-6858-11ea-b4d1-0242c26ca283', flowPreviousStepId = '8653a1a0-6858-11ea-b4d1-0242c26ca283', requestedURL = 'http://localhost:10080/unit-tests/library/My%20Documents/document/my%2Fidentifier/metadata'
    2020/03/17 15:06:41,239 GMT+0100 MONIT [org.ow2.petals.component.framework.UnderTestWithDefaultConf] :  traceCode = 'provideExtFlowStepFailure', flowInstanceId = '864f5be0-6858-11ea-b4d1-0242c26ca283', flowStepId = '866fb520-6858-11ea-b4d1-0242c26ca283', failureMessage = 'A business error occurs', httpStatus = '[500 Server Error]'
    2020/03/17 15:06:41,239 GMT+0100 FINE [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : HTTP code returned: HTTP/1.1 500 Internal Server Error
    2020/03/17 15:06:41,239 GMT+0100 FINE [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : HTTP response content-type 'null' processed as 'auto': 
    2020/03/17 15:06:41,239 GMT+0100 WARNING [org.ow2.petals.component.framework.UnderTestWithDefaultConf] : Can't set JBI Exchange content from HTTP Response
    javax.jbi.messaging.MessagingException: Error 500 Internal Server Error
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration.doBuildJBIReply(RESTRequestConfiguration.java:572)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration.buildJBIReply(RESTRequestConfiguration.java:518)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration$Callback.completed(RESTRequestConfiguration.java:299)
    	at org.ow2.petals.binding.rest.exchange.outgoing.configurations.RESTRequestConfiguration$Callback.completed(RESTRequestConfiguration.java:1)
    	at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:123)
    	at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:181)
    	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:439)
    	at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:329)
    	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
    	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
    	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
    	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
    	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
    	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
    	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
    	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
    	at java.lang.Thread.run(Thread.java:748)
  • Environment:
    -
  1. PETALSBCREST-82.patch
    (12 kB)
    Christophe DENEUX
    Tue, 17 Mar 2020 - 15:13:15 +0100

Activity

Hide
Christophe DENEUX added a comment - Tue, 17 Mar 2020 - 15:13:15 +0100

A patch containing a unit test about this problem is joined

Show
Christophe DENEUX added a comment - Tue, 17 Mar 2020 - 15:13:15 +0100 A patch containing a unit test about this problem is joined
Hide
Christophe DENEUX added a comment - Tue, 11 Apr 2023 - 11:34:46 +0200

Postponed to version 2.5.0

Show
Christophe DENEUX added a comment - Tue, 11 Apr 2023 - 11:34:46 +0200 Postponed to version 2.5.0

People

Dates

  • Created:
    Tue, 17 Mar 2020 - 15:09:49 +0100
    Updated:
    Tue, 11 Apr 2023 - 11:34:46 +0200