You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Mathias P.W Nilsson" <ma...@snyltarna.se> on 2008/09/08 22:18:46 UTC

Problem with search and get urls

I have a problem with NonVersionedHybridUrlCodingStrategy mounting.

When searching for items a url can result in this

http://localhost:8080/hairless-web/items/search/refilled...

the user searched for refilled... 
Whenever I have a more than one "." in the url the following error appears.'
This does not appear when using QueryStringUrlCodingStrategy.

java.lang.IllegalStateException: Empty string name for pagemaps is not
allowed
	org.apache.wicket.PageMap.<init>(PageMap.java:89)

org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.<init>(SecondLevelCacheSessionStore.java:248)

org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.<init>(SecondLevelCacheSessionStore.java:189)

org.apache.wicket.protocol.http.SecondLevelCacheSessionStore.createPageMap(SecondLevelCacheSessionStore.java:675)
	org.apache.wicket.Session.newPageMap(Session.java:911)
	org.apache.wicket.Session.pageMapForName(Session.java:931)
	org.apache.wicket.PageMap.forName(PageMap.java:67)
	org.apache.wicket.Page.init(Page.java:1168)
	org.apache.wicket.Page.<init>(Page.java:237)
	org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:184)

org.apache.wicket.markup.html.pages.ExceptionErrorPage.<init>(ExceptionErrorPage.java:55)

org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:163)
	org.apache.wicket.RequestCycle.step(RequestCycle.java:1298)
	org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
	org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
	org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)

org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)

org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)

org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)

-- 
View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19380336.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem with search and get urls

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
Shouldn't "." characters be supressed in the HybridUrlCodingStrategy?
-- 
View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19381312.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem with search and get urls

Posted by Igor Vaynberg <ig...@gmail.com>.
can you escape it manually using url coding sytanx? i think "." is a
reserved character for the hybrid strategy

-igor

On Mon, Sep 8, 2008 at 1:41 PM, Mathias P.W Nilsson
<ma...@snyltarna.se> wrote:
>
> url encoding the search word containing "..." won't be escaped. The "..."
> will remain.
> --
> View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19380740.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem with search and get urls

Posted by "Mathias P.W Nilsson" <ma...@snyltarna.se>.
url encoding the search word containing "..." won't be escaped. The "..."
will remain.
-- 
View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19380740.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Problem with search and get urls

Posted by Igor Vaynberg <ig...@gmail.com>.
maybe you should url encode your keywrod

-igor

On Mon, Sep 8, 2008 at 1:18 PM, Mathias P.W Nilsson
<ma...@snyltarna.se> wrote:
>
> I have a problem with NonVersionedHybridUrlCodingStrategy mounting.
>
> When searching for items a url can result in this
>
> http://localhost:8080/hairless-web/items/search/refilled...
>
> the user searched for refilled...
> Whenever I have a more than one "." in the url the following error appears.'
> This does not appear when using QueryStringUrlCodingStrategy.
>
> java.lang.IllegalStateException: Empty string name for pagemaps is not
> allowed
>        org.apache.wicket.PageMap.<init>(PageMap.java:89)
>
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.<init>(SecondLevelCacheSessionStore.java:248)
>
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.<init>(SecondLevelCacheSessionStore.java:189)
>
> org.apache.wicket.protocol.http.SecondLevelCacheSessionStore.createPageMap(SecondLevelCacheSessionStore.java:675)
>        org.apache.wicket.Session.newPageMap(Session.java:911)
>        org.apache.wicket.Session.pageMapForName(Session.java:931)
>        org.apache.wicket.PageMap.forName(PageMap.java:67)
>        org.apache.wicket.Page.init(Page.java:1168)
>        org.apache.wicket.Page.<init>(Page.java:237)
>        org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:184)
>
> org.apache.wicket.markup.html.pages.ExceptionErrorPage.<init>(ExceptionErrorPage.java:55)
>
> org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:163)
>        org.apache.wicket.RequestCycle.step(RequestCycle.java:1298)
>        org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
>        org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
>        org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
>
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
>
> --
> View this message in context: http://www.nabble.com/Problem-with-search-and-get-urls-tp19380336p19380336.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org