[JBoss JIRA] (WFLY-11414) :read-resource operation of jax-rs subsystem doesn't handle all interfaces
by Marek Kopecký (Jira)
Marek Kopecký created WFLY-11414:
------------------------------------
Summary: :read-resource operation of jax-rs subsystem doesn't handle all interfaces
Key: WFLY-11414
URL: https://issues.jboss.org/browse/WFLY-11414
Project: WildFly
Issue Type: Bug
Components: REST
Reporter: Marek Kopecký
Assignee: Alessio Soldano
_:read-resource_ operation of jax-rs subsystem doesn't handle interfaces, where end-point path is defined on interface
Steps to reproduce:
# {code:java}
@Path("pure/proxy")
public interface PureProxyApiService {
@Path("test/{a}/{b}")
@GET
String test(@PathParam("a") String a, @PathParam("b") String b);
}
public class PureProxyEndPoint implements PureProxyApiService {
@Override
public String test(@PathParam("a") String a, @PathParam("b") String b) {
return a + b;
}
}
{code}
# _/deployment=DEPLOYMENT_NAME/subsystem=jaxrs:read-resource(recursive,include-runtime)_
# Output:
{noformat}
"org.resteasy.simple.deployment.PureProxyEndPoint" => {
"resource-class" => "org.resteasy.simple.deployment.PureProxyEndPoint",
"rest-resource-paths" => undefined,
"sub-resource-locators" => undefined
}
{noformat}
# If class has \@Path annotation, _read-resource_ operation works correctly
# {code:java}public interface ProxyApiService {
@Path("test/{a}/{b}")
@GET
String test(@PathParam("a") String a, @PathParam("b") String b);
}
@Path("proxy")
public class ProxyEndPoint implements ProxyApiService {
@Override
public String test(@PathParam("a") String a, @PathParam("b") String b) {
return a + b;
}
}
{code}
# {noformat} "org.resteasy.simple.deployment.ProxyEndPoint" => {
"resource-class" => "org.resteasy.simple.deployment.ProxyEndPoint",
"rest-resource-paths" => [{
"resource-path" => "proxy/test/{a}/{b}",
"consumes" => undefined,
"produces" => undefined,
"java-method" => "java.lang.String org.resteasy.simple.deployment.ProxyEndPoint.test(@PathParam java.lang.String a, @PathParam java.lang.String b)",
"resource-methods" => ["GET /jaxrs-wf/proxy/test/{a}/{b}"]
}],
"sub-resource-locators" => undefined
}
{noformat}
cc [~gaol]
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 7 months
[JBoss JIRA] (DROOLS-2254) Automate .proto files rebuild in pom.xml
by Michael Biarnes Kiefer (Jira)
[ https://issues.jboss.org/browse/DROOLS-2254?page=com.atlassian.jira.plugi... ]
Michael Biarnes Kiefer updated DROOLS-2254:
-------------------------------------------
Fix Version/s: 7.16.0.Final
(was: 7.15.0.Final)
> Automate .proto files rebuild in pom.xml
> ----------------------------------------
>
> Key: DROOLS-2254
> URL: https://issues.jboss.org/browse/DROOLS-2254
> Project: Drools
> Issue Type: Task
> Components: tools
> Affects Versions: 7.5.0.Final
> Reporter: Dmitry Volodin
> Assignee: Dmitry Volodin
> Priority: Minor
> Fix For: 7.16.0.Final
>
>
> According to contribution guide, any .proto file or protobuf version changes it's necessary to download protoc utility and regenerate Java classes based on .proto files.
> This will add automation for downloading protoc utility and Java classes generation based on Maven Protocol Buffers Plugin. There is no timestamps and other build related info inside generated Java files and no changes will be added on each new build.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 7 months