You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Bryant Luk (JIRA)" <ji...@apache.org> on 2009/07/24 21:21:14 UTC
[jira] Created: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Root Resources at "/" with Subresource Locators/Methods does not work
---------------------------------------------------------------------
Key: WINK-119
URL: https://issues.apache.org/jira/browse/WINK-119
Project: Wink
Issue Type: Bug
Components: Server
Affects Versions: 0.1
Reporter: Bryant Luk
A root resource with @Path("/") and a subresource method/locator will not match.
{code}
@Path("/")
public class Root {
@GET
@Path("hello")
public String getHelloWorld() {
return "Hello world";
}
}
{code}
And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryant Luk closed WINK-119.
---------------------------
Looks good. Thanks Nadav.
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Fix For: 0.1
>
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Bryant Luk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735714#action_12735714 ]
Bryant Luk commented on WINK-119:
---------------------------------
I think if we already have a simple solution that we should just go ahead and apply it to trunk. The code will eventually be changed to fix the issue so if the solution is good enough today, why not? It would give users more assurance that there are fewer open issues and they would be using what the code looks like eventually anyway.
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Elman updated WINK-119:
-------------------------------
Attachment: WINK-119.patch
This is patch by Nadav Fischer. Assigning issue to Nadav.
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Nadav Fischer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nadav Fischer resolved WINK-119.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.1
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Fix For: 0.1
>
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Nadav Fischer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735365#action_12735365 ]
Nadav Fischer commented on WINK-119:
------------------------------------
should this be handled for 0.1 or can it wait for 0.2?
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736598#action_12736598 ]
Hudson commented on WINK-119:
-----------------------------
Integrated in Wink-Trunk-JDK1.5 #50 (See [http://hudson.zones.apache.org/hudson/job/Wink-Trunk-JDK1.5/50/])
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Fix For: 0.1
>
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Michael Elman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Elman reassigned WINK-119:
----------------------------------
Assignee: Nadav Fischer
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WINK-119) Root Resources at "/" with Subresource
Locators/Methods does not work
Posted by "Nadav Fischer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WINK-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12735970#action_12735970 ]
Nadav Fischer commented on WINK-119:
------------------------------------
The fix also allows for sub-resource locators to specify an empty path, something like:
{code}
@Path("hello")
public static class Resource {
@GET
public String getHello() {
return "Hello";
}
@Path("")
public Located locator() {
return new Located();
}
}
public static class Located {
@GET
@Path("world")
public String getHelloWorld() {
return "Hello world";
}
}
{code}
So that a request to /hello will yield "Hello" and a request to /hello/world will yield "Hello world"
> Root Resources at "/" with Subresource Locators/Methods does not work
> ---------------------------------------------------------------------
>
> Key: WINK-119
> URL: https://issues.apache.org/jira/browse/WINK-119
> Project: Wink
> Issue Type: Bug
> Components: Server
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Assignee: Nadav Fischer
> Fix For: 0.1
>
> Attachments: WINK-119.patch
>
>
> A root resource with @Path("/") and a subresource method/locator will not match.
> {code}
> @Path("/")
> public class Root {
> @GET
> @Path("hello")
> public String getHelloWorld() {
> return "Hello world";
> }
> }
> {code}
> And issuing a GET to /hello would result in a 404.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.