You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Илья Нарыжный <ph...@ydn.ru> on 2017/09/10 05:37:24 UTC

Double slash break everything

Hello,

We have in Orienteer customized NotFoundPage
https://github.com/OrienteerBAP/Orienteer/blob/master/orienteer-core/src/main/java/org/orienteer/core/web/NotFoundPage.java
. And it works perfectly except one case: if somebody by mistake put double
slash in URL. For example https://demo.orienteer.org// Application is
trying to render 404 page, but all resources are not found and user see
just plan page without styles and scripts. Taking into account that
resources are included commonly through XXXPackageResource and
WebJarsResourc - it looks like Wicket issue.

Is there any quick way to fix it?

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

Re: Double slash break everything

Posted by Илья Нарыжный <ph...@ydn.ru>.
Hello,

Ticket https://issues.apache.org/jira/browse/WICKET-6473 was created.

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Tue, Sep 19, 2017 at 3:36 PM, Илья Нарыжный <ph...@ydn.ru> wrote:

> Martin,
>
> Yes - that's exactly the case. Should I create JIRA ticket for this?
>
> Thanks,
> Ilia
>
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> On Mon, Sep 18, 2017 at 11:37 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
>> Hi,
>>
>> I think this is a bug in Wicket.
>> I haven't tried the quickstart app but if the 404 page cannot render its
>> static resources then it smells like a bug,
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Tue, Sep 19, 2017 at 8:24 AM, Maxim Solodovnik <so...@gmail.com>
>> wrote:
>>
>> > Here is the example of handling multiple slashes:
>> > https://stackoverflow.com/questions/11214542/is-there-a-
>> > way-to-handle-extra-slashes-at-beginning-of-url-using-jersey-and-guic
>> >
>> > On Tue, Sep 19, 2017 at 11:47 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
>> > > Actually, it can be easily reproduced on wicket quick-start.
>> > > Please check this one:
>> > > https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash
>> > >
>> > > Thanks,
>> > > Ilia
>> > >
>> > > ---------------------------------------------
>> > > Orienteer(http://orienteer.org) - open source Business Application
>> > Platform
>> > >
>> > > On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik <
>> solomax666@gmail.com>
>> > > wrote:
>> > >
>> > >> I would say it is not wicket issue, but the behavior of your
>> application
>> > >> server
>> > >>
>> > >> WBR, Maxim
>> > >> (from mobile, sorry for the typos)
>> > >>
>> > >> On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:
>> > >>
>> > >> > Hello,
>> > >> >
>> > >> > Any ideas? Is this known Wicket bug?
>> > >> >
>> > >> > Thanks,
>> > >> > Ilia
>> > >> >
>> > >> > ---------------------------------------------
>> > >> > Orienteer(http://orienteer.org) - open source Business Application
>> > >> > Platform
>> > >> >
>> > >> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru>
>> > wrote:
>> > >> >
>> > >> > > Hello,
>> > >> > >
>> > >> > > We have in Orienteer customized NotFoundPage https://github.
>> > >> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
>> > >> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it
>> > works
>> > >> > > perfectly except one case: if somebody by mistake put double
>> slash
>> > in
>> > >> > URL.
>> > >> > > For example https://demo.orienteer.org// Application is trying
>> to
>> > >> render
>> > >> > > 404 page, but all resources are not found and user see just plan
>> > page
>> > >> > > without styles and scripts. Taking into account that resources
>> are
>> > >> > included
>> > >> > > commonly through XXXPackageResource and WebJarsResourc - it looks
>> > like
>> > >> > > Wicket issue.
>> > >> > >
>> > >> > > Is there any quick way to fix it?
>> > >> > >
>> > >> > > Thanks,
>> > >> > > Ilia
>> > >> > >
>> > >> > > ---------------------------------------------
>> > >> > > Orienteer(http://orienteer.org) - open source Business
>> Application
>> > >> > > Platform
>> > >> > >
>> > >> >
>> > >>
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>
>

Re: Double slash break everything

Posted by Илья Нарыжный <ph...@ydn.ru>.
Martin,

Yes - that's exactly the case. Should I create JIRA ticket for this?

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Mon, Sep 18, 2017 at 11:37 PM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi,
>
> I think this is a bug in Wicket.
> I haven't tried the quickstart app but if the 404 page cannot render its
> static resources then it smells like a bug,
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Tue, Sep 19, 2017 at 8:24 AM, Maxim Solodovnik <so...@gmail.com>
> wrote:
>
> > Here is the example of handling multiple slashes:
> > https://stackoverflow.com/questions/11214542/is-there-a-
> > way-to-handle-extra-slashes-at-beginning-of-url-using-jersey-and-guic
> >
> > On Tue, Sep 19, 2017 at 11:47 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
> > > Actually, it can be easily reproduced on wicket quick-start.
> > > Please check this one:
> > > https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash
> > >
> > > Thanks,
> > > Ilia
> > >
> > > ---------------------------------------------
> > > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> > >
> > > On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik <
> solomax666@gmail.com>
> > > wrote:
> > >
> > >> I would say it is not wicket issue, but the behavior of your
> application
> > >> server
> > >>
> > >> WBR, Maxim
> > >> (from mobile, sorry for the typos)
> > >>
> > >> On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:
> > >>
> > >> > Hello,
> > >> >
> > >> > Any ideas? Is this known Wicket bug?
> > >> >
> > >> > Thanks,
> > >> > Ilia
> > >> >
> > >> > ---------------------------------------------
> > >> > Orienteer(http://orienteer.org) - open source Business Application
> > >> > Platform
> > >> >
> > >> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru>
> > wrote:
> > >> >
> > >> > > Hello,
> > >> > >
> > >> > > We have in Orienteer customized NotFoundPage https://github.
> > >> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> > >> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it
> > works
> > >> > > perfectly except one case: if somebody by mistake put double slash
> > in
> > >> > URL.
> > >> > > For example https://demo.orienteer.org// Application is trying to
> > >> render
> > >> > > 404 page, but all resources are not found and user see just plan
> > page
> > >> > > without styles and scripts. Taking into account that resources are
> > >> > included
> > >> > > commonly through XXXPackageResource and WebJarsResourc - it looks
> > like
> > >> > > Wicket issue.
> > >> > >
> > >> > > Is there any quick way to fix it?
> > >> > >
> > >> > > Thanks,
> > >> > > Ilia
> > >> > >
> > >> > > ---------------------------------------------
> > >> > > Orienteer(http://orienteer.org) - open source Business
> Application
> > >> > > Platform
> > >> > >
> > >> >
> > >>
> >
> >
> >
> > --
> > WBR
> > Maxim aka solomax
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

Re: Double slash break everything

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

I think this is a bug in Wicket.
I haven't tried the quickstart app but if the 404 page cannot render its
static resources then it smells like a bug,

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Sep 19, 2017 at 8:24 AM, Maxim Solodovnik <so...@gmail.com>
wrote:

> Here is the example of handling multiple slashes:
> https://stackoverflow.com/questions/11214542/is-there-a-
> way-to-handle-extra-slashes-at-beginning-of-url-using-jersey-and-guic
>
> On Tue, Sep 19, 2017 at 11:47 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
> > Actually, it can be easily reproduced on wicket quick-start.
> > Please check this one:
> > https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash
> >
> > Thanks,
> > Ilia
> >
> > ---------------------------------------------
> > Orienteer(http://orienteer.org) - open source Business Application
> Platform
> >
> > On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik <so...@gmail.com>
> > wrote:
> >
> >> I would say it is not wicket issue, but the behavior of your application
> >> server
> >>
> >> WBR, Maxim
> >> (from mobile, sorry for the typos)
> >>
> >> On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:
> >>
> >> > Hello,
> >> >
> >> > Any ideas? Is this known Wicket bug?
> >> >
> >> > Thanks,
> >> > Ilia
> >> >
> >> > ---------------------------------------------
> >> > Orienteer(http://orienteer.org) - open source Business Application
> >> > Platform
> >> >
> >> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru>
> wrote:
> >> >
> >> > > Hello,
> >> > >
> >> > > We have in Orienteer customized NotFoundPage https://github.
> >> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> >> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it
> works
> >> > > perfectly except one case: if somebody by mistake put double slash
> in
> >> > URL.
> >> > > For example https://demo.orienteer.org// Application is trying to
> >> render
> >> > > 404 page, but all resources are not found and user see just plan
> page
> >> > > without styles and scripts. Taking into account that resources are
> >> > included
> >> > > commonly through XXXPackageResource and WebJarsResourc - it looks
> like
> >> > > Wicket issue.
> >> > >
> >> > > Is there any quick way to fix it?
> >> > >
> >> > > Thanks,
> >> > > Ilia
> >> > >
> >> > > ---------------------------------------------
> >> > > Orienteer(http://orienteer.org) - open source Business Application
> >> > > Platform
> >> > >
> >> >
> >>
>
>
>
> --
> WBR
> Maxim aka solomax
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Double slash break everything

Posted by Maxim Solodovnik <so...@gmail.com>.
Here is the example of handling multiple slashes:
https://stackoverflow.com/questions/11214542/is-there-a-way-to-handle-extra-slashes-at-beginning-of-url-using-jersey-and-guic

On Tue, Sep 19, 2017 at 11:47 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
> Actually, it can be easily reproduced on wicket quick-start.
> Please check this one:
> https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash
>
> Thanks,
> Ilia
>
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application Platform
>
> On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik <so...@gmail.com>
> wrote:
>
>> I would say it is not wicket issue, but the behavior of your application
>> server
>>
>> WBR, Maxim
>> (from mobile, sorry for the typos)
>>
>> On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:
>>
>> > Hello,
>> >
>> > Any ideas? Is this known Wicket bug?
>> >
>> > Thanks,
>> > Ilia
>> >
>> > ---------------------------------------------
>> > Orienteer(http://orienteer.org) - open source Business Application
>> > Platform
>> >
>> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
>> >
>> > > Hello,
>> > >
>> > > We have in Orienteer customized NotFoundPage https://github.
>> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
>> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
>> > > perfectly except one case: if somebody by mistake put double slash in
>> > URL.
>> > > For example https://demo.orienteer.org// Application is trying to
>> render
>> > > 404 page, but all resources are not found and user see just plan page
>> > > without styles and scripts. Taking into account that resources are
>> > included
>> > > commonly through XXXPackageResource and WebJarsResourc - it looks like
>> > > Wicket issue.
>> > >
>> > > Is there any quick way to fix it?
>> > >
>> > > Thanks,
>> > > Ilia
>> > >
>> > > ---------------------------------------------
>> > > Orienteer(http://orienteer.org) - open source Business Application
>> > > Platform
>> > >
>> >
>>



-- 
WBR
Maxim aka solomax

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


Re: Double slash break everything

Posted by Илья Нарыжный <ph...@ydn.ru>.
Actually, it can be easily reproduced on wicket quick-start.
Please check this one:
https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik <so...@gmail.com>
wrote:

> I would say it is not wicket issue, but the behavior of your application
> server
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:
>
> > Hello,
> >
> > Any ideas? Is this known Wicket bug?
> >
> > Thanks,
> > Ilia
> >
> > ---------------------------------------------
> > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> >
> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
> >
> > > Hello,
> > >
> > > We have in Orienteer customized NotFoundPage https://github.
> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> > > perfectly except one case: if somebody by mistake put double slash in
> > URL.
> > > For example https://demo.orienteer.org// Application is trying to
> render
> > > 404 page, but all resources are not found and user see just plan page
> > > without styles and scripts. Taking into account that resources are
> > included
> > > commonly through XXXPackageResource and WebJarsResourc - it looks like
> > > Wicket issue.
> > >
> > > Is there any quick way to fix it?
> > >
> > > Thanks,
> > > Ilia
> > >
> > > ---------------------------------------------
> > > Orienteer(http://orienteer.org) - open source Business Application
> > > Platform
> > >
> >
>

Re: Double slash break everything

Posted by Maxim Solodovnik <so...@gmail.com>.
I would say it is not wicket issue, but the behavior of your application
server

WBR, Maxim
(from mobile, sorry for the typos)

On Sep 19, 2017 07:53, "Илья Нарыжный" <ph...@ydn.ru> wrote:

> Hello,
>
> Any ideas? Is this known Wicket bug?
>
> Thanks,
> Ilia
>
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru> wrote:
>
> > Hello,
> >
> > We have in Orienteer customized NotFoundPage https://github.
> > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> > perfectly except one case: if somebody by mistake put double slash in
> URL.
> > For example https://demo.orienteer.org// Application is trying to render
> > 404 page, but all resources are not found and user see just plan page
> > without styles and scripts. Taking into account that resources are
> included
> > commonly through XXXPackageResource and WebJarsResourc - it looks like
> > Wicket issue.
> >
> > Is there any quick way to fix it?
> >
> > Thanks,
> > Ilia
> >
> > ---------------------------------------------
> > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> >
>

Re: Double slash break everything

Posted by Илья Нарыжный <ph...@ydn.ru>.
Hello,

Any ideas? Is this known Wicket bug?

Thanks,
Ilia

---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный <ph...@ydn.ru> wrote:

> Hello,
>
> We have in Orienteer customized NotFoundPage https://github.
> com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> perfectly except one case: if somebody by mistake put double slash in URL.
> For example https://demo.orienteer.org// Application is trying to render
> 404 page, but all resources are not found and user see just plan page
> without styles and scripts. Taking into account that resources are included
> commonly through XXXPackageResource and WebJarsResourc - it looks like
> Wicket issue.
>
> Is there any quick way to fix it?
>
> Thanks,
> Ilia
>
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>