hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

Path parameter (consumer) validation throws ISE when regexp is used #58

Closed larsp closed 9 years ago

larsp commented 9 years ago

When a regexp is used in a path and I want to use the consumer, a IllegalStateException is thrown:

java.lang.IllegalStateException: Path http://localhost:8080/test/{test: (\w+\.)+\w+} has undefined path parameters: test: (\w+\.)+\w+ at com.eclipsesource.jaxrs.consumer.internal.RequestConfigurer.validatePath(RequestConfigurer.java:110) at com.eclipsesource.jaxrs.consumer.internal.RequestConfigurer.replacePathParams(RequestConfigurer.java:89) at com.eclipsesource.jaxrs.consumer.internal.RequestConfigurer.computeTarget(RequestConfigurer.java:67) at com.eclipsesource.jaxrs.consumer.internal.RequestConfigurer.configure(RequestConfigurer.java:48) at com.eclipsesource.jaxrs.consumer.internal.ResourceInvocationHandler.sendRequest(ResourceInvocationHandler.java:70) at com.eclipsesource.jaxrs.consumer.internal.ResourceInvocationHandler.invoke(ResourceInvocationHandler.java:65) at com.sun.proxy.$Proxy22.createAttributes(Unknown Source)

hstaudacher commented 9 years ago

Fixed with commit 27c16e110277234c5398ebae26647e0505105dd1