[jira] Created: (ABDERA-187) RequestContext.getTargetBasePath() returns wrong path.

View: New views
4 Messages — Rating Filter:   Alert me  

[jira] Created: (ABDERA-187) RequestContext.getTargetBasePath() returns wrong path.

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

RequestContext.getTargetBasePath() returns wrong path.
------------------------------------------------------

                 Key: ABDERA-187
                 URL: https://issues.apache.org/jira/browse/ABDERA-187
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.5.0
            Reporter: Sergio Bossa


The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.

I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ABDERA-187) Does RequestContext.getTargetBasePath() return wrong path?

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/ABDERA-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Bossa updated ABDERA-187:
--------------------------------

    Description:
The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.

I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?

If it's not so, how can I get the target path without servlet context and query string?

  was:
The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.

I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?

        Summary: Does RequestContext.getTargetBasePath() return wrong path?  (was: RequestContext.getTargetBasePath() returns wrong path.)

> Does RequestContext.getTargetBasePath() return wrong path?
> ----------------------------------------------------------
>
>                 Key: ABDERA-187
>                 URL: https://issues.apache.org/jira/browse/ABDERA-187
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Sergio Bossa
>
> The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.
> I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?
> If it's not so, how can I get the target path without servlet context and query string?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ABDERA-187) Does RequestContext.getTargetBasePath() return wrong path?

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/ABDERA-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Bossa updated ABDERA-187:
--------------------------------

    Description:
The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.

I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?

If it's not so, is there a method to get the target path without servlet context and query string, or do I have to make a substring by myself?

  was:
The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.

I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?

If it's not so, how can I get the target path without servlet context and query string?


> Does RequestContext.getTargetBasePath() return wrong path?
> ----------------------------------------------------------
>
>                 Key: ABDERA-187
>                 URL: https://issues.apache.org/jira/browse/ABDERA-187
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Sergio Bossa
>
> The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.
> I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?
> If it's not so, is there a method to get the target path without servlet context and query string, or do I have to make a substring by myself?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (ABDERA-187) Does RequestContext.getTargetBasePath() return wrong path?

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/ABDERA-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergio Bossa closed ABDERA-187.
-------------------------------

    Resolution: Invalid

I see that the method javadoc reports the following line: "Returns the subset of the request URI that is the base of the target path (e.g. HttpServletRequest.getServletPath())".
So, that method correctly behaves like HttpServletRequest.getServletPath().
Sorry for the wrong issue.

> Does RequestContext.getTargetBasePath() return wrong path?
> ----------------------------------------------------------
>
>                 Key: ABDERA-187
>                 URL: https://issues.apache.org/jira/browse/ABDERA-187
>             Project: Abdera
>          Issue Type: Bug
>    Affects Versions: 0.5.0
>            Reporter: Sergio Bossa
>
> The RequestContext.getTargetBasePath() method always returns the path which the Abdera servlet is mapped to.
> I think it should return the actual request target path: i.e., given the "http://www.acme.org/servlet-context/collection/entry?a=b", the RequestContext.getTargetBasePath() method should return "/collection/entry" ... am I right?
> If it's not so, is there a method to get the target path without servlet context and query string, or do I have to make a substring by myself?

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.