forwarding from within a Filter fault

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

forwarding from within a Filter fault

Bart Ottenkamp
Hai All,

I am experiencing strange things when using a plain java Filter to forward to a jsp file.
Some background:
I built a SSO service in front of my orbeon pages.
For this to work completely, the user should be noted that, for instance, he or she is already logged out with the SSO federation via another application.

I implemented this functionality by using a Filter that is catching all request from the server, like so:
    <filter-mapping>
        <filter-name>SSOFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

This way, I'm able to catch all user actions (all ajax calls like typing something into an input field or selecting a radio button, or anything else) in this Filter.
And, if the user is no longer logged in with the SSO federation, I want to direct the user to a loggedout jsp..

With that I am experiencing some strange behaviour:
in most of the cases, a pop-up comes up saying "server didn't respond with valid XML" or "A Clientside Exception ocuured". This pop-up is there to stay, but when I use fiebug in firefox to see what happend, I see that I correctly responded with the jsp I forwarded to... even clicking on the 'html' tab within firebug brings up this jsp.. but in firebug ofcourse and not in the browser...
And in some cases it is even more strange, because sometimes I see the pop-up being fired up, but within half a second, it is dissepearing again and my browser loads the 403.jsp that I configured in the web.xml as wel (as the error page).

So, most of the times, it seems (?), the forwarding results in a client side exception, which results in a pop-up being shown instead of the wanted jsp (loggedout.jsp). The forwarded jsp is however shown as a response from the server in firebug. And sometimes (it seems) the loading of the pop-up goes wrong even and the error page is shown... And the strangest thing of all is that that last situation (in which more than one thing is going wrong I believe) is a workable situation for me: if the end result is that the 403.jsp is shown, I can style it and show the information that I want the user to see...

Anybody following what is happening?
And is there anybody that has a comment on this one?
Or is there anybody who uses Filters too to catch user actions?
Or is there anybody that understands what I am trying to do and has a good suggestion?/

Best regards,
Bart




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: forwarding from within a Filter fault

Alessandro  Vernet
Administrator
Bart,

When you get that dialog saying "server didn't respond with XML", can
you see the response from the Ajax request in Firebug (it should show
in the Firebug console)? What does that response look like? Is it a
case where, after the page was loaded, the user is logged out, and the
Ajax queries start failing?

Alex

On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp <[hidden email]> wrote:

> Hai All,
>
> I am experiencing strange things when using a plain java Filter to forward
> to a jsp file.
> Some background:
> I built a SSO service in front of my orbeon pages.
> For this to work completely, the user should be noted that, for instance, he
> or she is already logged out with the SSO federation via another
> application.
>
> I implemented this functionality by using a Filter that is catching all
> request from the server, like so:
>     <filter-mapping>
>         <filter-name>SSOFilter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
> This way, I'm able to catch all user actions (all ajax calls like typing
> something into an input field or selecting a radio button, or anything else)
> in this Filter.
> And, if the user is no longer logged in with the SSO federation, I want to
> direct the user to a loggedout jsp..
>
> With that I am experiencing some strange behaviour:
> in most of the cases, a pop-up comes up saying "server didn't respond with
> valid XML" or "A Clientside Exception ocuured". This pop-up is there to
> stay, but when I use fiebug in firefox to see what happend, I see that I
> correctly responded with the jsp I forwarded to... even clicking on the
> 'html' tab within firebug brings up this jsp.. but in firebug ofcourse and
> not in the browser...
> And in some cases it is even more strange, because sometimes I see the
> pop-up being fired up, but within half a second, it is dissepearing again
> and my browser loads the 403.jsp that I configured in the web.xml as wel (as
> the error page).
>
> So, most of the times, it seems (?), the forwarding results in a client side
> exception, which results in a pop-up being shown instead of the wanted jsp
> (loggedout.jsp). The forwarded jsp is however shown as a response from the
> server in firebug. And sometimes (it seems) the loading of the pop-up goes
> wrong even and the error page is shown... And the strangest thing of all is
> that that last situation (in which more than one thing is going wrong I
> believe) is a workable situation for me: if the end result is that the
> 403.jsp is shown, I can style it and show the information that I want the
> user to see...
>
> Anybody following what is happening?
> And is there anybody that has a comment on this one?
> Or is there anybody who uses Filters too to catch user actions?
> Or is there anybody that understands what I am trying to do and has a good
> suggestion?/
>
> Best regards,
> Bart
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: forwarding from within a Filter fault

Bart Ottenkamp
Hai Alex,

thanks for replying.
When I look into firebug, I see the correct html. Nothing wrong with it. Firebug even has a tab for showing that html in a browserly way and if I choose that option, I see the page correctly, so why is can't this be shown in the browser?
Do you really think it can be related to the user being logged out? I'll try testing that, but I boubt that. Do you have other ideas?
Can it be related to the fact that the redirection/forwarding is done from a Filter?
To remind you: if I forward from a Processor, even stanger things happen! Because there I also forward to the logout.jsp, see that the pop-up is comming up, but then al of a sudden, the pop-up is closed and my 403.jsp is shown...

Well, because I'm after my deadline already, maybe I can ask you this (possible (horrible) shotcut??):
I described a situation in which I forward from a Processor to some jsp (logout.jsp), but during that forwarding something apperantly goes wrong and I end up seeing the 403.jsp... (and again, this works for me, because then I don't end up with a pop-up, but with a jsp in the browser that I can populate with the messages I want....)
So, the question: do you know a way in which I can forward from a Filter and end up doing something wrong so that the result is that I end up with my 403.jsp??

Hope you can think along with me.
Best regards,
Bart 

On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]> wrote:
Bart,

When you get that dialog saying "server didn't respond with XML", can
you see the response from the Ajax request in Firebug (it should show
in the Firebug console)? What does that response look like? Is it a
case where, after the page was loaded, the user is logged out, and the
Ajax queries start failing?

Alex

On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp <[hidden email]> wrote:
> Hai All,
>
> I am experiencing strange things when using a plain java Filter to forward
> to a jsp file.
> Some background:
> I built a SSO service in front of my orbeon pages.
> For this to work completely, the user should be noted that, for instance, he
> or she is already logged out with the SSO federation via another
> application.
>
> I implemented this functionality by using a Filter that is catching all
> request from the server, like so:
>     <filter-mapping>
>         <filter-name>SSOFilter</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>
> This way, I'm able to catch all user actions (all ajax calls like typing
> something into an input field or selecting a radio button, or anything else)
> in this Filter.
> And, if the user is no longer logged in with the SSO federation, I want to
> direct the user to a loggedout jsp..
>
> With that I am experiencing some strange behaviour:
> in most of the cases, a pop-up comes up saying "server didn't respond with
> valid XML" or "A Clientside Exception ocuured". This pop-up is there to
> stay, but when I use fiebug in firefox to see what happend, I see that I
> correctly responded with the jsp I forwarded to... even clicking on the
> 'html' tab within firebug brings up this jsp.. but in firebug ofcourse and
> not in the browser...
> And in some cases it is even more strange, because sometimes I see the
> pop-up being fired up, but within half a second, it is dissepearing again
> and my browser loads the 403.jsp that I configured in the web.xml as wel (as
> the error page).
>
> So, most of the times, it seems (?), the forwarding results in a client side
> exception, which results in a pop-up being shown instead of the wanted jsp
> (loggedout.jsp). The forwarded jsp is however shown as a response from the
> server in firebug. And sometimes (it seems) the loading of the pop-up goes
> wrong even and the error page is shown... And the strangest thing of all is
> that that last situation (in which more than one thing is going wrong I
> believe) is a workable situation for me: if the end result is that the
> 403.jsp is shown, I can style it and show the information that I want the
> user to see...
>
> Anybody following what is happening?
> And is there anybody that has a comment on this one?
> Or is there anybody who uses Filters too to catch user actions?
> Or is there anybody that understands what I am trying to do and has a good
> suggestion?/
>
> Best regards,
> Bart
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: forwarding from within a Filter fault

Alessandro  Vernet
Administrator
Bart,

If possible, could you share a screenshot of what the error looks like
in the browser? Since you described a pop-up, I assumed the error
happened upon reception of an Ajax call. If this is indeed what
happens, it would be useful to know what the response is. The message
"server didn't respond with valid XML" usually means that the result
from an Ajax call is expected to be XML, but that something else was
returned in that case.

If you have a filter between the browser and Orbeon Forms, the Ajax
requests will go through the filter, and that filter might return an
error in HTML (instead of the expected XML response), hence the error.
Could you reproduce the problem and look in Firebug what the response
from the Ajax call is?  See the screenshot attached for an example.

Alex

On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp <[hidden email]> wrote:

> Hai Alex,
>
> thanks for replying.
> When I look into firebug, I see the correct html. Nothing wrong with it.
> Firebug even has a tab for showing that html in a browserly way and if I
> choose that option, I see the page correctly, so why is can't this be shown
> in the browser?
> Do you really think it can be related to the user being logged out? I'll try
> testing that, but I boubt that. Do you have other ideas?
> Can it be related to the fact that the redirection/forwarding is done from a
> Filter?
> To remind you: if I forward from a Processor, even stanger things happen!
> Because there I also forward to the logout.jsp, see that the pop-up is
> comming up, but then al of a sudden, the pop-up is closed and my 403.jsp is
> shown...
>
> Well, because I'm after my deadline already, maybe I can ask you this
> (possible (horrible) shotcut??):
> I described a situation in which I forward from a Processor to some jsp
> (logout.jsp), but during that forwarding something apperantly goes wrong and
> I end up seeing the 403.jsp... (and again, this works for me, because then I
> don't end up with a pop-up, but with a jsp in the browser that I can
> populate with the messages I want....)
> So, the question: do you know a way in which I can forward from a Filter and
> end up doing something wrong so that the result is that I end up with my
> 403.jsp??
>
> Hope you can think along with me.
> Best regards,
> Bart
>
> On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Bart,
>>
>> When you get that dialog saying "server didn't respond with XML", can
>> you see the response from the Ajax request in Firebug (it should show
>> in the Firebug console)? What does that response look like? Is it a
>> case where, after the page was loaded, the user is logged out, and the
>> Ajax queries start failing?
>>
>> Alex
>>
>> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp <[hidden email]>
>> wrote:
>> > Hai All,
>> >
>> > I am experiencing strange things when using a plain java Filter to
>> > forward
>> > to a jsp file.
>> > Some background:
>> > I built a SSO service in front of my orbeon pages.
>> > For this to work completely, the user should be noted that, for
>> > instance, he
>> > or she is already logged out with the SSO federation via another
>> > application.
>> >
>> > I implemented this functionality by using a Filter that is catching all
>> > request from the server, like so:
>> >     <filter-mapping>
>> >         <filter-name>SSOFilter</filter-name>
>> >         <url-pattern>/*</url-pattern>
>> >     </filter-mapping>
>> >
>> > This way, I'm able to catch all user actions (all ajax calls like typing
>> > something into an input field or selecting a radio button, or anything
>> > else)
>> > in this Filter.
>> > And, if the user is no longer logged in with the SSO federation, I want
>> > to
>> > direct the user to a loggedout jsp..
>> >
>> > With that I am experiencing some strange behaviour:
>> > in most of the cases, a pop-up comes up saying "server didn't respond
>> > with
>> > valid XML" or "A Clientside Exception ocuured". This pop-up is there to
>> > stay, but when I use fiebug in firefox to see what happend, I see that I
>> > correctly responded with the jsp I forwarded to... even clicking on the
>> > 'html' tab within firebug brings up this jsp.. but in firebug ofcourse
>> > and
>> > not in the browser...
>> > And in some cases it is even more strange, because sometimes I see the
>> > pop-up being fired up, but within half a second, it is dissepearing
>> > again
>> > and my browser loads the 403.jsp that I configured in the web.xml as wel
>> > (as
>> > the error page).
>> >
>> > So, most of the times, it seems (?), the forwarding results in a client
>> > side
>> > exception, which results in a pop-up being shown instead of the wanted
>> > jsp
>> > (loggedout.jsp). The forwarded jsp is however shown as a response from
>> > the
>> > server in firebug. And sometimes (it seems) the loading of the pop-up
>> > goes
>> > wrong even and the error page is shown... And the strangest thing of all
>> > is
>> > that that last situation (in which more than one thing is going wrong I
>> > believe) is a workable situation for me: if the end result is that the
>> > 403.jsp is shown, I can style it and show the information that I want
>> > the
>> > user to see...
>> >
>> > Anybody following what is happening?
>> > And is there anybody that has a comment on this one?
>> > Or is there anybody who uses Filters too to catch user actions?
>> > Or is there anybody that understands what I am trying to do and has a
>> > good
>> > suggestion?/
>> >
>> > Best regards,
>> > Bart
>> >
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the [hidden email]
>> > mailing
>> > list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >
>> >
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

firebug.png (191K) Download Attachment
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: forwarding from within a Filter fault

Bart Ottenkamp
Hai Alex,

here are two screenshots. One of them shows the xml/html in firebug and the other one shows the html variant within firebug, proving that firebug at least can handle the returned html... the latter also shows the pop-up...
Hope you can help...

Best regards,
Bart

On Sat, May 29, 2010 at 4:09 AM, Alessandro Vernet <[hidden email]> wrote:
Bart,

If possible, could you share a screenshot of what the error looks like
in the browser? Since you described a pop-up, I assumed the error
happened upon reception of an Ajax call. If this is indeed what
happens, it would be useful to know what the response is. The message
"server didn't respond with valid XML" usually means that the result
from an Ajax call is expected to be XML, but that something else was
returned in that case.

If you have a filter between the browser and Orbeon Forms, the Ajax
requests will go through the filter, and that filter might return an
error in HTML (instead of the expected XML response), hence the error.
Could you reproduce the problem and look in Firebug what the response
from the Ajax call is?  See the screenshot attached for an example.

Alex

On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp <[hidden email]> wrote:
> Hai Alex,
>
> thanks for replying.
> When I look into firebug, I see the correct html. Nothing wrong with it.
> Firebug even has a tab for showing that html in a browserly way and if I
> choose that option, I see the page correctly, so why is can't this be shown
> in the browser?
> Do you really think it can be related to the user being logged out? I'll try
> testing that, but I boubt that. Do you have other ideas?
> Can it be related to the fact that the redirection/forwarding is done from a
> Filter?
> To remind you: if I forward from a Processor, even stanger things happen!
> Because there I also forward to the logout.jsp, see that the pop-up is
> comming up, but then al of a sudden, the pop-up is closed and my 403.jsp is
> shown...
>
> Well, because I'm after my deadline already, maybe I can ask you this
> (possible (horrible) shotcut??):
> I described a situation in which I forward from a Processor to some jsp
> (logout.jsp), but during that forwarding something apperantly goes wrong and
> I end up seeing the 403.jsp... (and again, this works for me, because then I
> don't end up with a pop-up, but with a jsp in the browser that I can
> populate with the messages I want....)
> So, the question: do you know a way in which I can forward from a Filter and
> end up doing something wrong so that the result is that I end up with my
> 403.jsp??
>
> Hope you can think along with me.
> Best regards,
> Bart
>
> On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Bart,
>>
>> When you get that dialog saying "server didn't respond with XML", can
>> you see the response from the Ajax request in Firebug (it should show
>> in the Firebug console)? What does that response look like? Is it a
>> case where, after the page was loaded, the user is logged out, and the
>> Ajax queries start failing?
>>
>> Alex
>>
>> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp <[hidden email]>
>> wrote:
>> > Hai All,
>> >
>> > I am experiencing strange things when using a plain java Filter to
>> > forward
>> > to a jsp file.
>> > Some background:
>> > I built a SSO service in front of my orbeon pages.
>> > For this to work completely, the user should be noted that, for
>> > instance, he
>> > or she is already logged out with the SSO federation via another
>> > application.
>> >
>> > I implemented this functionality by using a Filter that is catching all
>> > request from the server, like so:
>> >     <filter-mapping>
>> >         <filter-name>SSOFilter</filter-name>
>> >         <url-pattern>/*</url-pattern>
>> >     </filter-mapping>
>> >
>> > This way, I'm able to catch all user actions (all ajax calls like typing
>> > something into an input field or selecting a radio button, or anything
>> > else)
>> > in this Filter.
>> > And, if the user is no longer logged in with the SSO federation, I want
>> > to
>> > direct the user to a loggedout jsp..
>> >
>> > With that I am experiencing some strange behaviour:
>> > in most of the cases, a pop-up comes up saying "server didn't respond
>> > with
>> > valid XML" or "A Clientside Exception ocuured". This pop-up is there to
>> > stay, but when I use fiebug in firefox to see what happend, I see that I
>> > correctly responded with the jsp I forwarded to... even clicking on the
>> > 'html' tab within firebug brings up this jsp.. but in firebug ofcourse
>> > and
>> > not in the browser...
>> > And in some cases it is even more strange, because sometimes I see the
>> > pop-up being fired up, but within half a second, it is dissepearing
>> > again
>> > and my browser loads the 403.jsp that I configured in the web.xml as wel
>> > (as
>> > the error page).
>> >
>> > So, most of the times, it seems (?), the forwarding results in a client
>> > side
>> > exception, which results in a pop-up being shown instead of the wanted
>> > jsp
>> > (loggedout.jsp). The forwarded jsp is however shown as a response from
>> > the
>> > server in firebug. And sometimes (it seems) the loading of the pop-up
>> > goes
>> > wrong even and the error page is shown... And the strangest thing of all
>> > is
>> > that that last situation (in which more than one thing is going wrong I
>> > believe) is a workable situation for me: if the end result is that the
>> > 403.jsp is shown, I can style it and show the information that I want
>> > the
>> > user to see...
>> >
>> > Anybody following what is happening?
>> > And is there anybody that has a comment on this one?
>> > Or is there anybody who uses Filters too to catch user actions?
>> > Or is there anybody that understands what I am trying to do and has a
>> > good
>> > suggestion?/
>> >
>> > Best regards,
>> > Bart
>> >
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the [hidden email]
>> > mailing
>> > list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >
>> >
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: forwarding from within a Filter fault

Bart Ottenkamp
Oh, and here the screenshots..


On Mon, Jun 7, 2010 at 10:00 PM, Bart Ottenkamp <[hidden email]> wrote:
Hai Alex,

here are two screenshots. One of them shows the xml/html in firebug and the other one shows the html variant within firebug, proving that firebug at least can handle the returned html... the latter also shows the pop-up...
Hope you can help...

Best regards,
Bart


On Sat, May 29, 2010 at 4:09 AM, Alessandro Vernet <[hidden email]> wrote:
Bart,

If possible, could you share a screenshot of what the error looks like
in the browser? Since you described a pop-up, I assumed the error
happened upon reception of an Ajax call. If this is indeed what
happens, it would be useful to know what the response is. The message
"server didn't respond with valid XML" usually means that the result
from an Ajax call is expected to be XML, but that something else was
returned in that case.

If you have a filter between the browser and Orbeon Forms, the Ajax
requests will go through the filter, and that filter might return an
error in HTML (instead of the expected XML response), hence the error.
Could you reproduce the problem and look in Firebug what the response
from the Ajax call is?  See the screenshot attached for an example.

Alex

On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp <[hidden email]> wrote:
> Hai Alex,
>
> thanks for replying.
> When I look into firebug, I see the correct html. Nothing wrong with it.
> Firebug even has a tab for showing that html in a browserly way and if I
> choose that option, I see the page correctly, so why is can't this be shown
> in the browser?
> Do you really think it can be related to the user being logged out? I'll try
> testing that, but I boubt that. Do you have other ideas?
> Can it be related to the fact that the redirection/forwarding is done from a
> Filter?
> To remind you: if I forward from a Processor, even stanger things happen!
> Because there I also forward to the logout.jsp, see that the pop-up is
> comming up, but then al of a sudden, the pop-up is closed and my 403.jsp is
> shown...
>
> Well, because I'm after my deadline already, maybe I can ask you this
> (possible (horrible) shotcut??):
> I described a situation in which I forward from a Processor to some jsp
> (logout.jsp), but during that forwarding something apperantly goes wrong and
> I end up seeing the 403.jsp... (and again, this works for me, because then I
> don't end up with a pop-up, but with a jsp in the browser that I can
> populate with the messages I want....)
> So, the question: do you know a way in which I can forward from a Filter and
> end up doing something wrong so that the result is that I end up with my
> 403.jsp??
>
> Hope you can think along with me.
> Best regards,
> Bart
>
> On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Bart,
>>
>> When you get that dialog saying "server didn't respond with XML", can
>> you see the response from the Ajax request in Firebug (it should show
>> in the Firebug console)? What does that response look like? Is it a
>> case where, after the page was loaded, the user is logged out, and the
>> Ajax queries start failing?
>>
>> Alex
>>
>> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp <[hidden email]>
>> wrote:
>> > Hai All,
>> >
>> > I am experiencing strange things when using a plain java Filter to
>> > forward
>> > to a jsp file.
>> > Some background:
>> > I built a SSO service in front of my orbeon pages.
>> > For this to work completely, the user should be noted that, for
>> > instance, he
>> > or she is already logged out with the SSO federation via another
>> > application.
>> >
>> > I implemented this functionality by using a Filter that is catching all
>> > request from the server, like so:
>> >     <filter-mapping>
>> >         <filter-name>SSOFilter</filter-name>
>> >         <url-pattern>/*</url-pattern>
>> >     </filter-mapping>
>> >
>> > This way, I'm able to catch all user actions (all ajax calls like typing
>> > something into an input field or selecting a radio button, or anything
>> > else)
>> > in this Filter.
>> > And, if the user is no longer logged in with the SSO federation, I want
>> > to
>> > direct the user to a loggedout jsp..
>> >
>> > With that I am experiencing some strange behaviour:
>> > in most of the cases, a pop-up comes up saying "server didn't respond
>> > with
>> > valid XML" or "A Clientside Exception ocuured". This pop-up is there to
>> > stay, but when I use fiebug in firefox to see what happend, I see that I
>> > correctly responded with the jsp I forwarded to... even clicking on the
>> > 'html' tab within firebug brings up this jsp.. but in firebug ofcourse
>> > and
>> > not in the browser...
>> > And in some cases it is even more strange, because sometimes I see the
>> > pop-up being fired up, but within half a second, it is dissepearing
>> > again
>> > and my browser loads the 403.jsp that I configured in the web.xml as wel
>> > (as
>> > the error page).
>> >
>> > So, most of the times, it seems (?), the forwarding results in a client
>> > side
>> > exception, which results in a pop-up being shown instead of the wanted
>> > jsp
>> > (loggedout.jsp). The forwarded jsp is however shown as a response from
>> > the
>> > server in firebug. And sometimes (it seems) the loading of the pop-up
>> > goes
>> > wrong even and the error page is shown... And the strangest thing of all
>> > is
>> > that that last situation (in which more than one thing is going wrong I
>> > believe) is a workable situation for me: if the end result is that the
>> > 403.jsp is shown, I can style it and show the information that I want
>> > the
>> > user to see...
>> >
>> > Anybody following what is happening?
>> > And is there anybody that has a comment on this one?
>> > Or is there anybody who uses Filters too to catch user actions?
>> > Or is there anybody that understands what I am trying to do and has a
>> > good
>> > suggestion?/
>> >
>> > Best regards,
>> > Bart
>> >
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the [hidden email]
>> > mailing
>> > list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >
>> >
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

firebug_html.jpg (322K) Download Attachment
firebug_xml.jpg (320K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: forwarding from within a Filter fault

Alessandro  Vernet
Administrator
Bart,

OK, and what does the text say in the HTML? I can only recognize SSO;
is it single sign-on?

Alex

On Mon, Jun 7, 2010 at 1:02 PM, Bart Ottenkamp <[hidden email]> wrote:

> Oh, and here the screenshots..
>
>
> On Mon, Jun 7, 2010 at 10:00 PM, Bart Ottenkamp <[hidden email]>
> wrote:
>>
>> Hai Alex,
>>
>> here are two screenshots. One of them shows the xml/html in firebug and
>> the other one shows the html variant within firebug, proving that firebug at
>> least can handle the returned html... the latter also shows the pop-up...
>> Hope you can help...
>>
>> Best regards,
>> Bart
>>
>> On Sat, May 29, 2010 at 4:09 AM, Alessandro Vernet <[hidden email]>
>> wrote:
>>>
>>> Bart,
>>>
>>> If possible, could you share a screenshot of what the error looks like
>>> in the browser? Since you described a pop-up, I assumed the error
>>> happened upon reception of an Ajax call. If this is indeed what
>>> happens, it would be useful to know what the response is. The message
>>> "server didn't respond with valid XML" usually means that the result
>>> from an Ajax call is expected to be XML, but that something else was
>>> returned in that case.
>>>
>>> If you have a filter between the browser and Orbeon Forms, the Ajax
>>> requests will go through the filter, and that filter might return an
>>> error in HTML (instead of the expected XML response), hence the error.
>>> Could you reproduce the problem and look in Firebug what the response
>>> from the Ajax call is?  See the screenshot attached for an example.
>>>
>>> Alex
>>>
>>> On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp <[hidden email]>
>>> wrote:
>>> > Hai Alex,
>>> >
>>> > thanks for replying.
>>> > When I look into firebug, I see the correct html. Nothing wrong with
>>> > it.
>>> > Firebug even has a tab for showing that html in a browserly way and if
>>> > I
>>> > choose that option, I see the page correctly, so why is can't this be
>>> > shown
>>> > in the browser?
>>> > Do you really think it can be related to the user being logged out?
>>> > I'll try
>>> > testing that, but I boubt that. Do you have other ideas?
>>> > Can it be related to the fact that the redirection/forwarding is done
>>> > from a
>>> > Filter?
>>> > To remind you: if I forward from a Processor, even stanger things
>>> > happen!
>>> > Because there I also forward to the logout.jsp, see that the pop-up is
>>> > comming up, but then al of a sudden, the pop-up is closed and my
>>> > 403.jsp is
>>> > shown...
>>> >
>>> > Well, because I'm after my deadline already, maybe I can ask you this
>>> > (possible (horrible) shotcut??):
>>> > I described a situation in which I forward from a Processor to some jsp
>>> > (logout.jsp), but during that forwarding something apperantly goes
>>> > wrong and
>>> > I end up seeing the 403.jsp... (and again, this works for me, because
>>> > then I
>>> > don't end up with a pop-up, but with a jsp in the browser that I can
>>> > populate with the messages I want....)
>>> > So, the question: do you know a way in which I can forward from a
>>> > Filter and
>>> > end up doing something wrong so that the result is that I end up with
>>> > my
>>> > 403.jsp??
>>> >
>>> > Hope you can think along with me.
>>> > Best regards,
>>> > Bart
>>> >
>>> > On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]>
>>> > wrote:
>>> >>
>>> >> Bart,
>>> >>
>>> >> When you get that dialog saying "server didn't respond with XML", can
>>> >> you see the response from the Ajax request in Firebug (it should show
>>> >> in the Firebug console)? What does that response look like? Is it a
>>> >> case where, after the page was loaded, the user is logged out, and the
>>> >> Ajax queries start failing?
>>> >>
>>> >> Alex
>>> >>
>>> >> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp
>>> >> <[hidden email]>
>>> >> wrote:
>>> >> > Hai All,
>>> >> >
>>> >> > I am experiencing strange things when using a plain java Filter to
>>> >> > forward
>>> >> > to a jsp file.
>>> >> > Some background:
>>> >> > I built a SSO service in front of my orbeon pages.
>>> >> > For this to work completely, the user should be noted that, for
>>> >> > instance, he
>>> >> > or she is already logged out with the SSO federation via another
>>> >> > application.
>>> >> >
>>> >> > I implemented this functionality by using a Filter that is catching
>>> >> > all
>>> >> > request from the server, like so:
>>> >> >     <filter-mapping>
>>> >> >         <filter-name>SSOFilter</filter-name>
>>> >> >         <url-pattern>/*</url-pattern>
>>> >> >     </filter-mapping>
>>> >> >
>>> >> > This way, I'm able to catch all user actions (all ajax calls like
>>> >> > typing
>>> >> > something into an input field or selecting a radio button, or
>>> >> > anything
>>> >> > else)
>>> >> > in this Filter.
>>> >> > And, if the user is no longer logged in with the SSO federation, I
>>> >> > want
>>> >> > to
>>> >> > direct the user to a loggedout jsp..
>>> >> >
>>> >> > With that I am experiencing some strange behaviour:
>>> >> > in most of the cases, a pop-up comes up saying "server didn't
>>> >> > respond
>>> >> > with
>>> >> > valid XML" or "A Clientside Exception ocuured". This pop-up is there
>>> >> > to
>>> >> > stay, but when I use fiebug in firefox to see what happend, I see
>>> >> > that I
>>> >> > correctly responded with the jsp I forwarded to... even clicking on
>>> >> > the
>>> >> > 'html' tab within firebug brings up this jsp.. but in firebug
>>> >> > ofcourse
>>> >> > and
>>> >> > not in the browser...
>>> >> > And in some cases it is even more strange, because sometimes I see
>>> >> > the
>>> >> > pop-up being fired up, but within half a second, it is dissepearing
>>> >> > again
>>> >> > and my browser loads the 403.jsp that I configured in the web.xml as
>>> >> > wel
>>> >> > (as
>>> >> > the error page).
>>> >> >
>>> >> > So, most of the times, it seems (?), the forwarding results in a
>>> >> > client
>>> >> > side
>>> >> > exception, which results in a pop-up being shown instead of the
>>> >> > wanted
>>> >> > jsp
>>> >> > (loggedout.jsp). The forwarded jsp is however shown as a response
>>> >> > from
>>> >> > the
>>> >> > server in firebug. And sometimes (it seems) the loading of the
>>> >> > pop-up
>>> >> > goes
>>> >> > wrong even and the error page is shown... And the strangest thing of
>>> >> > all
>>> >> > is
>>> >> > that that last situation (in which more than one thing is going
>>> >> > wrong I
>>> >> > believe) is a workable situation for me: if the end result is that
>>> >> > the
>>> >> > 403.jsp is shown, I can style it and show the information that I
>>> >> > want
>>> >> > the
>>> >> > user to see...
>>> >> >
>>> >> > Anybody following what is happening?
>>> >> > And is there anybody that has a comment on this one?
>>> >> > Or is there anybody who uses Filters too to catch user actions?
>>> >> > Or is there anybody that understands what I am trying to do and has
>>> >> > a
>>> >> > good
>>> >> > suggestion?/
>>> >> >
>>> >> > Best regards,
>>> >> > Bart
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > You receive this message as a subscriber of the [hidden email]
>>> >> > mailing
>>> >> > list.
>>> >> > To unsubscribe: mailto:[hidden email]
>>> >> > For general help: mailto:[hidden email]?subject=help
>>> >> > OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>> >> http://www.orbeon.com/
>>> >> My Twitter: http://twitter.com/avernet
>>> >>
>>> >>
>>> >> --
>>> >> You receive this message as a subscriber of the [hidden email]
>>> >> mailing
>>> >> list.
>>> >> To unsubscribe: mailto:[hidden email]
>>> >> For general help: mailto:[hidden email]?subject=help
>>> >> OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > You receive this message as a subscriber of the [hidden email]
>>> > mailing
>>> > list.
>>> > To unsubscribe: mailto:[hidden email]
>>> > For general help: mailto:[hidden email]?subject=help
>>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>> http://www.orbeon.com/
>>> My Twitter: http://twitter.com/avernet
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: forwarding from within a Filter fault

Bart Ottenkamp
Hello Alex,

for your information, it says something like 'you are logged out from our SSO '. But it really doesn't matter what it says there, does it? It's just text and could be 'abracadabra' as well as chinese or something?
The point is that ths html is physically present on the server as you see it and it is picked up by my Filter to be forwarded to the browser after an ajax call... And this results in this pop-up...
To remind you; I experience an even stranger thing in a (almost) simular situation: when another Filter picks up de 'being logged out' event, it also forwards the same html and I also see the pop-up comming up, but then al of a sudden the pop-up dissappears and the browser transfers to my 403.jsp (error-page as specified in web.xml)!
Even stranger, don't you think?

Best regards,
Bart


On Fri, Jun 11, 2010 at 1:10 AM, Alessandro Vernet <[hidden email]> wrote:
Bart,

OK, and what does the text say in the HTML? I can only recognize SSO;
is it single sign-on?

Alex

On Mon, Jun 7, 2010 at 1:02 PM, Bart Ottenkamp <[hidden email]> wrote:
> Oh, and here the screenshots..
>
>
> On Mon, Jun 7, 2010 at 10:00 PM, Bart Ottenkamp <[hidden email]>
> wrote:
>>
>> Hai Alex,
>>
>> here are two screenshots. One of them shows the xml/html in firebug and
>> the other one shows the html variant within firebug, proving that firebug at
>> least can handle the returned html... the latter also shows the pop-up...
>> Hope you can help...
>>
>> Best regards,
>> Bart
>>
>> On Sat, May 29, 2010 at 4:09 AM, Alessandro Vernet <[hidden email]>
>> wrote:
>>>
>>> Bart,
>>>
>>> If possible, could you share a screenshot of what the error looks like
>>> in the browser? Since you described a pop-up, I assumed the error
>>> happened upon reception of an Ajax call. If this is indeed what
>>> happens, it would be useful to know what the response is. The message
>>> "server didn't respond with valid XML" usually means that the result
>>> from an Ajax call is expected to be XML, but that something else was
>>> returned in that case.
>>>
>>> If you have a filter between the browser and Orbeon Forms, the Ajax
>>> requests will go through the filter, and that filter might return an
>>> error in HTML (instead of the expected XML response), hence the error.
>>> Could you reproduce the problem and look in Firebug what the response
>>> from the Ajax call is?  See the screenshot attached for an example.
>>>
>>> Alex
>>>
>>> On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp <[hidden email]>
>>> wrote:
>>> > Hai Alex,
>>> >
>>> > thanks for replying.
>>> > When I look into firebug, I see the correct html. Nothing wrong with
>>> > it.
>>> > Firebug even has a tab for showing that html in a browserly way and if
>>> > I
>>> > choose that option, I see the page correctly, so why is can't this be
>>> > shown
>>> > in the browser?
>>> > Do you really think it can be related to the user being logged out?
>>> > I'll try
>>> > testing that, but I boubt that. Do you have other ideas?
>>> > Can it be related to the fact that the redirection/forwarding is done
>>> > from a
>>> > Filter?
>>> > To remind you: if I forward from a Processor, even stanger things
>>> > happen!
>>> > Because there I also forward to the logout.jsp, see that the pop-up is
>>> > comming up, but then al of a sudden, the pop-up is closed and my
>>> > 403.jsp is
>>> > shown...
>>> >
>>> > Well, because I'm after my deadline already, maybe I can ask you this
>>> > (possible (horrible) shotcut??):
>>> > I described a situation in which I forward from a Processor to some jsp
>>> > (logout.jsp), but during that forwarding something apperantly goes
>>> > wrong and
>>> > I end up seeing the 403.jsp... (and again, this works for me, because
>>> > then I
>>> > don't end up with a pop-up, but with a jsp in the browser that I can
>>> > populate with the messages I want....)
>>> > So, the question: do you know a way in which I can forward from a
>>> > Filter and
>>> > end up doing something wrong so that the result is that I end up with
>>> > my
>>> > 403.jsp??
>>> >
>>> > Hope you can think along with me.
>>> > Best regards,
>>> > Bart
>>> >
>>> > On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet <[hidden email]>
>>> > wrote:
>>> >>
>>> >> Bart,
>>> >>
>>> >> When you get that dialog saying "server didn't respond with XML", can
>>> >> you see the response from the Ajax request in Firebug (it should show
>>> >> in the Firebug console)? What does that response look like? Is it a
>>> >> case where, after the page was loaded, the user is logged out, and the
>>> >> Ajax queries start failing?
>>> >>
>>> >> Alex
>>> >>
>>> >> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp
>>> >> <[hidden email]>
>>> >> wrote:
>>> >> > Hai All,
>>> >> >
>>> >> > I am experiencing strange things when using a plain java Filter to
>>> >> > forward
>>> >> > to a jsp file.
>>> >> > Some background:
>>> >> > I built a SSO service in front of my orbeon pages.
>>> >> > For this to work completely, the user should be noted that, for
>>> >> > instance, he
>>> >> > or she is already logged out with the SSO federation via another
>>> >> > application.
>>> >> >
>>> >> > I implemented this functionality by using a Filter that is catching
>>> >> > all
>>> >> > request from the server, like so:
>>> >> >     <filter-mapping>
>>> >> >         <filter-name>SSOFilter</filter-name>
>>> >> >         <url-pattern>/*</url-pattern>
>>> >> >     </filter-mapping>
>>> >> >
>>> >> > This way, I'm able to catch all user actions (all ajax calls like
>>> >> > typing
>>> >> > something into an input field or selecting a radio button, or
>>> >> > anything
>>> >> > else)
>>> >> > in this Filter.
>>> >> > And, if the user is no longer logged in with the SSO federation, I
>>> >> > want
>>> >> > to
>>> >> > direct the user to a loggedout jsp..
>>> >> >
>>> >> > With that I am experiencing some strange behaviour:
>>> >> > in most of the cases, a pop-up comes up saying "server didn't
>>> >> > respond
>>> >> > with
>>> >> > valid XML" or "A Clientside Exception ocuured". This pop-up is there
>>> >> > to
>>> >> > stay, but when I use fiebug in firefox to see what happend, I see
>>> >> > that I
>>> >> > correctly responded with the jsp I forwarded to... even clicking on
>>> >> > the
>>> >> > 'html' tab within firebug brings up this jsp.. but in firebug
>>> >> > ofcourse
>>> >> > and
>>> >> > not in the browser...
>>> >> > And in some cases it is even more strange, because sometimes I see
>>> >> > the
>>> >> > pop-up being fired up, but within half a second, it is dissepearing
>>> >> > again
>>> >> > and my browser loads the 403.jsp that I configured in the web.xml as
>>> >> > wel
>>> >> > (as
>>> >> > the error page).
>>> >> >
>>> >> > So, most of the times, it seems (?), the forwarding results in a
>>> >> > client
>>> >> > side
>>> >> > exception, which results in a pop-up being shown instead of the
>>> >> > wanted
>>> >> > jsp
>>> >> > (loggedout.jsp). The forwarded jsp is however shown as a response
>>> >> > from
>>> >> > the
>>> >> > server in firebug. And sometimes (it seems) the loading of the
>>> >> > pop-up
>>> >> > goes
>>> >> > wrong even and the error page is shown... And the strangest thing of
>>> >> > all
>>> >> > is
>>> >> > that that last situation (in which more than one thing is going
>>> >> > wrong I
>>> >> > believe) is a workable situation for me: if the end result is that
>>> >> > the
>>> >> > 403.jsp is shown, I can style it and show the information that I
>>> >> > want
>>> >> > the
>>> >> > user to see...
>>> >> >
>>> >> > Anybody following what is happening?
>>> >> > And is there anybody that has a comment on this one?
>>> >> > Or is there anybody who uses Filters too to catch user actions?
>>> >> > Or is there anybody that understands what I am trying to do and has
>>> >> > a
>>> >> > good
>>> >> > suggestion?/
>>> >> >
>>> >> > Best regards,
>>> >> > Bart
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > You receive this message as a subscriber of the [hidden email]
>>> >> > mailing
>>> >> > list.
>>> >> > To unsubscribe: mailto:[hidden email]
>>> >> > For general help: mailto:[hidden email]?subject=help
>>> >> > OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>> >> http://www.orbeon.com/
>>> >> My Twitter: http://twitter.com/avernet
>>> >>
>>> >>
>>> >> --
>>> >> You receive this message as a subscriber of the [hidden email]
>>> >> mailing
>>> >> list.
>>> >> To unsubscribe: mailto:[hidden email]
>>> >> For general help: mailto:[hidden email]?subject=help
>>> >> OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > You receive this message as a subscriber of the [hidden email]
>>> > mailing
>>> > list.
>>> > To unsubscribe: mailto:[hidden email]
>>> > For general help: mailto:[hidden email]?subject=help
>>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>>> http://www.orbeon.com/
>>> My Twitter: http://twitter.com/avernet
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email] mailing
>>> list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Re: Re: forwarding from within a Filter fault

Erik Bruchez
Administrator
Bart,

Two things could be happening:

* Either the client expects XML and somehow doesn't receive XML.
* Or the client displays this message incorrectly, maybe because of
some other error.

Did you look at the response headers? Could it be that, e.g. your
filter returns HTML but with an XML content-type, and our JS code
thinks it's XML? Or a variation on this scenario?

-Erik

On Mon, Jun 14, 2010 at 7:17 AM, Bart Ottenkamp <[hidden email]> wrote:

> Hello Alex,
>
> for your information, it says something like 'you are logged out from our
> SSO '. But it really doesn't matter what it says there, does it? It's just
> text and could be 'abracadabra' as well as chinese or something?
> The point is that ths html is physically present on the server as you see it
> and it is picked up by my Filter to be forwarded to the browser after an
> ajax call... And this results in this pop-up...
> To remind you; I experience an even stranger thing in a (almost) simular
> situation: when another Filter picks up de 'being logged out' event, it also
> forwards the same html and I also see the pop-up comming up, but then al of
> a sudden the pop-up dissappears and the browser transfers to my 403.jsp
> (error-page as specified in web.xml)!
> Even stranger, don't you think?
>
> Best regards,
> Bart
>
>
> On Fri, Jun 11, 2010 at 1:10 AM, Alessandro Vernet <[hidden email]>
> wrote:
>>
>> Bart,
>>
>> OK, and what does the text say in the HTML? I can only recognize SSO;
>> is it single sign-on?
>>
>> Alex
>>
>> On Mon, Jun 7, 2010 at 1:02 PM, Bart Ottenkamp <[hidden email]>
>> wrote:
>> > Oh, and here the screenshots..
>> >
>> >
>> > On Mon, Jun 7, 2010 at 10:00 PM, Bart Ottenkamp
>> > <[hidden email]>
>> > wrote:
>> >>
>> >> Hai Alex,
>> >>
>> >> here are two screenshots. One of them shows the xml/html in firebug and
>> >> the other one shows the html variant within firebug, proving that
>> >> firebug at
>> >> least can handle the returned html... the latter also shows the
>> >> pop-up...
>> >> Hope you can help...
>> >>
>> >> Best regards,
>> >> Bart
>> >>
>> >> On Sat, May 29, 2010 at 4:09 AM, Alessandro Vernet <[hidden email]>
>> >> wrote:
>> >>>
>> >>> Bart,
>> >>>
>> >>> If possible, could you share a screenshot of what the error looks like
>> >>> in the browser? Since you described a pop-up, I assumed the error
>> >>> happened upon reception of an Ajax call. If this is indeed what
>> >>> happens, it would be useful to know what the response is. The message
>> >>> "server didn't respond with valid XML" usually means that the result
>> >>> from an Ajax call is expected to be XML, but that something else was
>> >>> returned in that case.
>> >>>
>> >>> If you have a filter between the browser and Orbeon Forms, the Ajax
>> >>> requests will go through the filter, and that filter might return an
>> >>> error in HTML (instead of the expected XML response), hence the error.
>> >>> Could you reproduce the problem and look in Firebug what the response
>> >>> from the Ajax call is?  See the screenshot attached for an example.
>> >>>
>> >>> Alex
>> >>>
>> >>> On Fri, May 28, 2010 at 4:28 AM, Bart Ottenkamp
>> >>> <[hidden email]>
>> >>> wrote:
>> >>> > Hai Alex,
>> >>> >
>> >>> > thanks for replying.
>> >>> > When I look into firebug, I see the correct html. Nothing wrong with
>> >>> > it.
>> >>> > Firebug even has a tab for showing that html in a browserly way and
>> >>> > if
>> >>> > I
>> >>> > choose that option, I see the page correctly, so why is can't this
>> >>> > be
>> >>> > shown
>> >>> > in the browser?
>> >>> > Do you really think it can be related to the user being logged out?
>> >>> > I'll try
>> >>> > testing that, but I boubt that. Do you have other ideas?
>> >>> > Can it be related to the fact that the redirection/forwarding is
>> >>> > done
>> >>> > from a
>> >>> > Filter?
>> >>> > To remind you: if I forward from a Processor, even stanger things
>> >>> > happen!
>> >>> > Because there I also forward to the logout.jsp, see that the pop-up
>> >>> > is
>> >>> > comming up, but then al of a sudden, the pop-up is closed and my
>> >>> > 403.jsp is
>> >>> > shown...
>> >>> >
>> >>> > Well, because I'm after my deadline already, maybe I can ask you
>> >>> > this
>> >>> > (possible (horrible) shotcut??):
>> >>> > I described a situation in which I forward from a Processor to some
>> >>> > jsp
>> >>> > (logout.jsp), but during that forwarding something apperantly goes
>> >>> > wrong and
>> >>> > I end up seeing the 403.jsp... (and again, this works for me,
>> >>> > because
>> >>> > then I
>> >>> > don't end up with a pop-up, but with a jsp in the browser that I can
>> >>> > populate with the messages I want....)
>> >>> > So, the question: do you know a way in which I can forward from a
>> >>> > Filter and
>> >>> > end up doing something wrong so that the result is that I end up
>> >>> > with
>> >>> > my
>> >>> > 403.jsp??
>> >>> >
>> >>> > Hope you can think along with me.
>> >>> > Best regards,
>> >>> > Bart
>> >>> >
>> >>> > On Thu, May 27, 2010 at 4:29 AM, Alessandro Vernet
>> >>> > <[hidden email]>
>> >>> > wrote:
>> >>> >>
>> >>> >> Bart,
>> >>> >>
>> >>> >> When you get that dialog saying "server didn't respond with XML",
>> >>> >> can
>> >>> >> you see the response from the Ajax request in Firebug (it should
>> >>> >> show
>> >>> >> in the Firebug console)? What does that response look like? Is it a
>> >>> >> case where, after the page was loaded, the user is logged out, and
>> >>> >> the
>> >>> >> Ajax queries start failing?
>> >>> >>
>> >>> >> Alex
>> >>> >>
>> >>> >> On Wed, May 19, 2010 at 1:49 PM, Bart Ottenkamp
>> >>> >> <[hidden email]>
>> >>> >> wrote:
>> >>> >> > Hai All,
>> >>> >> >
>> >>> >> > I am experiencing strange things when using a plain java Filter
>> >>> >> > to
>> >>> >> > forward
>> >>> >> > to a jsp file.
>> >>> >> > Some background:
>> >>> >> > I built a SSO service in front of my orbeon pages.
>> >>> >> > For this to work completely, the user should be noted that, for
>> >>> >> > instance, he
>> >>> >> > or she is already logged out with the SSO federation via another
>> >>> >> > application.
>> >>> >> >
>> >>> >> > I implemented this functionality by using a Filter that is
>> >>> >> > catching
>> >>> >> > all
>> >>> >> > request from the server, like so:
>> >>> >> >     <filter-mapping>
>> >>> >> >         <filter-name>SSOFilter</filter-name>
>> >>> >> >         <url-pattern>/*</url-pattern>
>> >>> >> >     </filter-mapping>
>> >>> >> >
>> >>> >> > This way, I'm able to catch all user actions (all ajax calls like
>> >>> >> > typing
>> >>> >> > something into an input field or selecting a radio button, or
>> >>> >> > anything
>> >>> >> > else)
>> >>> >> > in this Filter.
>> >>> >> > And, if the user is no longer logged in with the SSO federation,
>> >>> >> > I
>> >>> >> > want
>> >>> >> > to
>> >>> >> > direct the user to a loggedout jsp..
>> >>> >> >
>> >>> >> > With that I am experiencing some strange behaviour:
>> >>> >> > in most of the cases, a pop-up comes up saying "server didn't
>> >>> >> > respond
>> >>> >> > with
>> >>> >> > valid XML" or "A Clientside Exception ocuured". This pop-up is
>> >>> >> > there
>> >>> >> > to
>> >>> >> > stay, but when I use fiebug in firefox to see what happend, I see
>> >>> >> > that I
>> >>> >> > correctly responded with the jsp I forwarded to... even clicking
>> >>> >> > on
>> >>> >> > the
>> >>> >> > 'html' tab within firebug brings up this jsp.. but in firebug
>> >>> >> > ofcourse
>> >>> >> > and
>> >>> >> > not in the browser...
>> >>> >> > And in some cases it is even more strange, because sometimes I
>> >>> >> > see
>> >>> >> > the
>> >>> >> > pop-up being fired up, but within half a second, it is
>> >>> >> > dissepearing
>> >>> >> > again
>> >>> >> > and my browser loads the 403.jsp that I configured in the web.xml
>> >>> >> > as
>> >>> >> > wel
>> >>> >> > (as
>> >>> >> > the error page).
>> >>> >> >
>> >>> >> > So, most of the times, it seems (?), the forwarding results in a
>> >>> >> > client
>> >>> >> > side
>> >>> >> > exception, which results in a pop-up being shown instead of the
>> >>> >> > wanted
>> >>> >> > jsp
>> >>> >> > (loggedout.jsp). The forwarded jsp is however shown as a response
>> >>> >> > from
>> >>> >> > the
>> >>> >> > server in firebug. And sometimes (it seems) the loading of the
>> >>> >> > pop-up
>> >>> >> > goes
>> >>> >> > wrong even and the error page is shown... And the strangest thing
>> >>> >> > of
>> >>> >> > all
>> >>> >> > is
>> >>> >> > that that last situation (in which more than one thing is going
>> >>> >> > wrong I
>> >>> >> > believe) is a workable situation for me: if the end result is
>> >>> >> > that
>> >>> >> > the
>> >>> >> > 403.jsp is shown, I can style it and show the information that I
>> >>> >> > want
>> >>> >> > the
>> >>> >> > user to see...
>> >>> >> >
>> >>> >> > Anybody following what is happening?
>> >>> >> > And is there anybody that has a comment on this one?
>> >>> >> > Or is there anybody who uses Filters too to catch user actions?
>> >>> >> > Or is there anybody that understands what I am trying to do and
>> >>> >> > has
>> >>> >> > a
>> >>> >> > good
>> >>> >> > suggestion?/
>> >>> >> >
>> >>> >> > Best regards,
>> >>> >> > Bart
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> >
>> >>> >> > --
>> >>> >> > You receive this message as a subscriber of the [hidden email]
>> >>> >> > mailing
>> >>> >> > list.
>> >>> >> > To unsubscribe: mailto:[hidden email]
>> >>> >> > For general help: mailto:[hidden email]?subject=help
>> >>> >> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >>> >> >
>> >>> >> >
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> >>> >> http://www.orbeon.com/
>> >>> >> My Twitter: http://twitter.com/avernet
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> You receive this message as a subscriber of the [hidden email]
>> >>> >> mailing
>> >>> >> list.
>> >>> >> To unsubscribe: mailto:[hidden email]
>> >>> >> For general help: mailto:[hidden email]?subject=help
>> >>> >> OW2 mailing lists service home page: http://www.ow2.org/wws
>> >>> >>
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > You receive this message as a subscriber of the [hidden email]
>> >>> > mailing
>> >>> > list.
>> >>> > To unsubscribe: mailto:[hidden email]
>> >>> > For general help: mailto:[hidden email]?subject=help
>> >>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >>> >
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> >>> http://www.orbeon.com/
>> >>> My Twitter: http://twitter.com/avernet
>> >>>
>> >>>
>> >>> --
>> >>> You receive this message as a subscriber of the [hidden email]
>> >>> mailing
>> >>> list.
>> >>> To unsubscribe: mailto:[hidden email]
>> >>> For general help: mailto:[hidden email]?subject=help
>> >>> OW2 mailing lists service home page: http://www.ow2.org/wws
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > You receive this message as a subscriber of the [hidden email]
>> > mailing
>> > list.
>> > To unsubscribe: mailto:[hidden email]
>> > For general help: mailto:[hidden email]?subject=help
>> > OW2 mailing lists service home page: http://www.ow2.org/wws
>> >
>> >
>>
>>
>>
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws