[
https://issues.apache.org/jira/browse/ABDERA-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jim Ancona updated ABDERA-95:
-----------------------------
Attachment: RouteManager_workaround.patch
Further analysis show that the problem occurs when calling
AbstractCollectionAdapter.getHref(RequestContext request), which calls
request.urlFor("feed", hrefParams). Because hrefParams doesn't contain the
parameters for the base part of the URI, the wrong href is returned.
This patch is a workaround. I have RouteManager add the missing parameters to
the HashMap before building the context. This only works when the params are in
a HashMap (which they are in this case). I can't figure out how to handle the
other cases properly.
Perhaps this will help you find a better solution.
> DefaultProvider doesn't properly handle parameters in base routes
> -----------------------------------------------------------------
>
> Key: ABDERA-95
> URL: https://issues.apache.org/jira/browse/ABDERA-95
> Project: Abdera
> Issue Type: Bug
> Reporter: Jim Ancona
> Attachments: CustomerAdapterTest.patch, RouteManager_workaround.patch
>
>
> I spent some time trying to debug this last night, but didn't find the
> solution. I will attach a unit test patch that reproduces the problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.