abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Calavera (JIRA)" <j...@apache.org>
Subject [jira] Created: (ABDERA-161) Route context doesn't support params that start with ":"
Date Fri, 16 May 2008 12:17:56 GMT
Route context doesn't support params that start with ":"
--------------------------------------------------------

                 Key: ABDERA-161
                 URL: https://issues.apache.org/jira/browse/ABDERA-161
             Project: Abdera
          Issue Type: Bug
    Affects Versions: 0.4.0
            Reporter: David Calavera
             Fix For: 0.5.0
         Attachments: route.patch

if you add a param key that starts with ":" the method Route.expans doesn't recognize it as
an uri param and adds it as query param. For example:

Route route = new Route("feed", "/feed/:id");

Map ctx = new HashMap();
ctx.put(":id", "1");

String url = routeManager.urlFor(request, "feed", ctx);

the variable url is equal to "/feed/?id=1" instead of "/feed/1"

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


Mime
View raw message