[JBoss JIRA] (JBIDE-17730) JAX-RS @PathParam Field is not validated against @Path annotation value
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17730?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-17730:
----------------------------------
Description:
Take the following code:
{code}
@Path("/")
public class CarResource {
@PathParam("id")
private Integer id;
@GET
@Path("{id}")
public Object getCar() {
return null;
}
}
{code}
replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported in 'as-you-type', while there should be (user has to save the file to see the problem markers).
Same goes when changing the value of the {{@Path}} annotation on the method: no 'as-you-type' problem report.
was:
Take the following code:
{code}
@Path("/")
public class CarResource {
@PathParam("id")
private Integer id;
@GET
@Path("{id}")
public Object getCar() {
return null;
}
}
{code}
replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported, while there should be.
> JAX-RS @PathParam Field is not validated against @Path annotation value
> -----------------------------------------------------------------------
>
> Key: JBIDE-17730
> URL: https://issues.jboss.org/browse/JBIDE-17730
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.2.0.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Fix For: 4.2.0.Beta3
>
>
> Take the following code:
> {code}
> @Path("/")
> public class CarResource {
>
> @PathParam("id")
> private Integer id;
>
> @GET
> @Path("{id}")
> public Object getCar() {
> return null;
> }
> }
> {code}
> replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported in 'as-you-type', while there should be (user has to save the file to see the problem markers).
> Same goes when changing the value of the {{@Path}} annotation on the method: no 'as-you-type' problem report.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17730) JAX-RS @PathParam Field is not validated against @Path annotation value
by Xavier Coulon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17730?page=com.atlassian.jira.plugi... ]
Xavier Coulon updated JBIDE-17730:
----------------------------------
Description:
Take the following code:
{code}
@Path("/")
public class CarResource {
@PathParam("id")
private Integer id;
@GET
@Path("{id}")
public Object getCar() {
return null;
}
}
{code}
replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported, while there should be.
was:
Take the following code:
{code}
@Path("/")
public class CarResource {
@PathParam("id")
private Integer id;
@GET
@Path("{id}")
public Object getCar() {
return null;
}
}
{code}
replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported, while there should be.
Note: replacing {{@Path("{id}")}} with {{@Path("{i}")}} instead results in a proble reported by the JAX-RS validator.
> JAX-RS @PathParam Field is not validated against @Path annotation value
> -----------------------------------------------------------------------
>
> Key: JBIDE-17730
> URL: https://issues.jboss.org/browse/JBIDE-17730
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: webservices
> Affects Versions: 4.2.0.Beta2
> Reporter: Xavier Coulon
> Assignee: Xavier Coulon
> Fix For: 4.2.0.Beta3
>
>
> Take the following code:
> {code}
> @Path("/")
> public class CarResource {
>
> @PathParam("id")
> private Integer id;
>
> @GET
> @Path("{id}")
> public Object getCar() {
> return null;
> }
> }
> {code}
> replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported, while there should be.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17730) JAX-RS @PathParam Field is not validated against @Path annotation value
by Xavier Coulon (JIRA)
Xavier Coulon created JBIDE-17730:
-------------------------------------
Summary: JAX-RS @PathParam Field is not validated against @Path annotation value
Key: JBIDE-17730
URL: https://issues.jboss.org/browse/JBIDE-17730
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.2.0.Beta2
Reporter: Xavier Coulon
Assignee: Xavier Coulon
Fix For: 4.2.0.Beta3
Take the following code:
{code}
@Path("/")
public class CarResource {
@PathParam("id")
private Integer id;
@GET
@Path("{id}")
public Object getCar() {
return null;
}
}
{code}
replace {{@PathParam("id")}} with {{@PathParam("i")}}, there is no problem reported, while there should be.
Note: replacing {{@Path("{id}")}} with {{@Path("{i}")}} instead results in a proble reported by the JAX-RS validator.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17729) compile failure in Seam (JavaEE)
by Alexey Kazakov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17729?page=com.atlassian.jira.plugi... ]
Alexey Kazakov updated JBIDE-17729:
-----------------------------------
Fix Version/s: 4.2.0.Beta3
> compile failure in Seam (JavaEE)
> --------------------------------
>
> Key: JBIDE-17729
> URL: https://issues.jboss.org/browse/JBIDE-17729
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate, seam2
> Affects Versions: 4.2.0.Beta3
> Reporter: Daniel Azarov
> Priority: Blocker
> Fix For: 4.2.0.Beta3
>
>
> {code}
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.jboss.tools.seam.ui: Compilation failure: Compilation failure:
> [ERROR] /home/daniel/git/jbosstools-javaee/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/DBTablesViewer.java:[247]
> [ERROR] Settings newSettings = cfg.buildSettings();
> [ERROR] ^^^^^^^^^^^^^^^^^^^
> [ERROR] Type mismatch: cannot convert from ISettings to Settings
> [ERROR] 1 problem (1 error)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17729) compile failure in Seam (JavaEE)
by Alexey Kazakov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17729?page=com.atlassian.jira.plugi... ]
Alexey Kazakov updated JBIDE-17729:
-----------------------------------
Component/s: hibernate
> compile failure in Seam (JavaEE)
> --------------------------------
>
> Key: JBIDE-17729
> URL: https://issues.jboss.org/browse/JBIDE-17729
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate, seam2
> Affects Versions: 4.2.0.Beta3
> Reporter: Daniel Azarov
>
> {code}
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.jboss.tools.seam.ui: Compilation failure: Compilation failure:
> [ERROR] /home/daniel/git/jbosstools-javaee/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/DBTablesViewer.java:[247]
> [ERROR] Settings newSettings = cfg.buildSettings();
> [ERROR] ^^^^^^^^^^^^^^^^^^^
> [ERROR] Type mismatch: cannot convert from ISettings to Settings
> [ERROR] 1 problem (1 error)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17729) compile failure in Seam (JavaEE)
by Alexey Kazakov (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17729?page=com.atlassian.jira.plugi... ]
Alexey Kazakov updated JBIDE-17729:
-----------------------------------
Priority: Blocker (was: Major)
> compile failure in Seam (JavaEE)
> --------------------------------
>
> Key: JBIDE-17729
> URL: https://issues.jboss.org/browse/JBIDE-17729
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: hibernate, seam2
> Affects Versions: 4.2.0.Beta3
> Reporter: Daniel Azarov
> Priority: Blocker
>
> {code}
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.jboss.tools.seam.ui: Compilation failure: Compilation failure:
> [ERROR] /home/daniel/git/jbosstools-javaee/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/DBTablesViewer.java:[247]
> [ERROR] Settings newSettings = cfg.buildSettings();
> [ERROR] ^^^^^^^^^^^^^^^^^^^
> [ERROR] Type mismatch: cannot convert from ISettings to Settings
> [ERROR] 1 problem (1 error)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months
[JBoss JIRA] (JBIDE-17729) compile failure in Seam (JavaEE)
by Daniel Azarov (JIRA)
Daniel Azarov created JBIDE-17729:
-------------------------------------
Summary: compile failure in Seam (JavaEE)
Key: JBIDE-17729
URL: https://issues.jboss.org/browse/JBIDE-17729
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: seam2
Affects Versions: 4.2.0.Beta3
Reporter: Daniel Azarov
{code}
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.jboss.tools.seam.ui: Compilation failure: Compilation failure:
[ERROR] /home/daniel/git/jbosstools-javaee/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/DBTablesViewer.java:[247]
[ERROR] Settings newSettings = cfg.buildSettings();
[ERROR] ^^^^^^^^^^^^^^^^^^^
[ERROR] Type mismatch: cannot convert from ISettings to Settings
[ERROR] 1 problem (1 error)
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 5 months