Details
-
Type:
Task
-
Status:
New
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.3.0-BC
-
Fix Version/s: 2.6.0-BC
-
Component/s: Provider mode
-
Security Level: Public
-
- Environment:
- -
Attachments
Activity
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Christophe DENEUX [ cdeneux ] | |
| Priority | Major [ 3 ] | |
| Description |
French characters, space or path separator are not supported in resource identifiers.
The following XML payload with the following URI template: {{GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata}} {code} <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> {code} generates the following error: {code} 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) {code} |
French characters, space or path separator are not supported in resource identifiers.
The following XML payload: {code} <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> {code} with the following URI template: {code}GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata{code} generates the following error: {code} 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) {code} |
| Description |
French characters, space or path separator are not supported in resource identifiers.
The following XML payload: {code} <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> {code} with the following URI template: {code}GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata{code} generates the following error: {code} 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) {code} |
French characters, space or path separator are not supported in resource identifiers.
The following XML payload: {code} <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> {code} with the following URI template: {code}GET http://localhost:10080/unit-tests/library/{library}/document/{reference}/metadata{code} generates the following error: {code} 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) {code} |
| Attachment | PETALSBCREST-82.patch [ 10841 ] |
| Fix Version/s | 1.5.0-BC [ 10903 ] |
| Fix Version/s | 2.5.0-BC [ 11099 ] | |
| Fix Version/s | 2.4.0-BC [ 10903 ] |
| Fix Version/s | 2.6.0-BC [ 11246 ] | |
| Fix Version/s | 2.5.0-BC [ 11099 ] |
A patch containing a unit test about this problem is joined