Handling of 204 HTTP status codes

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

Handling of 204 HTTP status codes

Gunzenreiner Simon
Handling of 204 HTTP status codes

Hi all

My version of the RestEasy framework returns a 204 status code, if my Restful WS call's response is empty. The reaction of the xforms engine is, that the browser's page is not updated (that's OK), but the "Loading " sign does not disappear. If the server sends a 200 response code, the empty response page is shown, and the "Loading " sign disappears correctly.

Any hints how to fix this?

Best regards,

Simon



--
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: Handling of 204 HTTP status codes

Hank Ratzesberger-2

Hi Simon, 

A workaround is not to show the loading message at all, on the submission element:

xxforms:show-progress="false"

--Hank

On Aug 13, 2010, at 1:03 AM, Gunzenreiner Simon wrote:

Hi all

My version of the RestEasy framework returns a 204 status code, if my Restful WS call's response is empty. The reaction of the xforms engine is, that the browser's page is not updated (that's OK), but the "Loading " sign does not disappear. If the server sends a 200 response code, the empty response page is shown, and the "Loading " sign disappears correctly.

Any hints how to fix this?

Best regards,

Simon



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

Hank Ratzesberger
NEES@UCSB
Earth Research Institute
University of California, Santa Barbara
805-893-8042








--
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
|

AW: Re: Handling of 204 HTTP status codes

Gunzenreiner Simon

Hi Hank

 

Good hint. In the meantime I made sure that I only get 200 instead of 204 status codes. But – would you agree that it is a bug, in other words, should I report it in the bug tracker. I am always hesitant in reporting some behavior as a bug, and in the end it turns out it is a correct behavior …

 

Regards

Simon

 

Von: Hank Ratzesberger [mailto:[hidden email]]
Gesendet: Freitag, 13. August 2010 23:23
An: [hidden email]
Betreff: [ops-users] Re: Handling of 204 HTTP status codes

 

 

Hi Simon, 

 

A workaround is not to show the loading message at all, on the submission element:

 

xxforms:show-progress="false"

 

--Hank

 

On Aug 13, 2010, at 1:03 AM, Gunzenreiner Simon wrote:



Hi all

My version of the RestEasy framework returns a 204 status code, if my Restful WS call's response is empty. The reaction of the xforms engine is, that the browser's page is not updated (that's OK), but the "Loading …" sign does not disappear. If the server sends a 200 response code, the empty response page is shown, and the "Loading …" sign disappears correctly.

Any hints how to fix this?

Best regards,

Simon

 


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

 

Hank Ratzesberger

NEES@UCSB

Earth Research Institute

University of California, Santa Barbara

805-893-8042

 

 

 

 

 



--
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: AW: Re: Handling of 204 HTTP status codes

Hank Ratzesberger-2

Hi Simon,

I would report it at this point, and if there are other reasons, then they
can respond -- and if anyone is looking there later, they might find
the notes.

Best,
Hank

Quoting Gunzenreiner Simon <[hidden email]>:

> Hi Hank
>
>
>
> Good hint. In the meantime I made sure that I only get 200 instead of
> 204 status codes. But - would you agree that it is a bug, in other
> words, should I report it in the bug tracker. I am always hesitant in
> reporting some behavior as a bug, and in the end it turns out it is a
> correct behavior ...
>
>
>
> Regards
>
> Simon
>
>
>
> Von: Hank Ratzesberger [mailto:[hidden email]]
> Gesendet: Freitag, 13. August 2010 23:23
> An: [hidden email]
> Betreff: [ops-users] Re: Handling of 204 HTTP status codes
>
>
>
>
>
> Hi Simon,
>
>
>
> A workaround is not to show the loading message at all, on the
> submission element:
>
>
>
> xxforms:show-progress="false"
>
>
>
> --Hank
>
>
>
> On Aug 13, 2010, at 1:03 AM, Gunzenreiner Simon wrote:
>
>
>
>
>
> Hi all
>
> My version of the RestEasy framework returns a 204 status code, if my
> Restful WS call's response is empty. The reaction of the xforms engine
> is, that the browser's page is not updated (that's OK), but the "Loading
> ..." sign does not disappear. If the server sends a 200 response code,
> the empty response page is shown, and the "Loading ..." sign disappears
> correctly.
>
> Any hints how to fix this?
>
> Best regards,
>
> Simon
>
>
>
>
> --
> 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
>
>
>
> Hank Ratzesberger
>
> NEES@UCSB
>
> Earth Research Institute
>
> University of California, Santa Barbara
>
> 805-893-8042
>
>
>
>
>
>
>
>
>
>
>
>


--
Hank Ratzesberger
[hidden email]



--
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: AW: Re: Handling of 204 HTTP status codes

Erik Bruchez
Administrator
Simon,

That might well be a bug if it works with 200 but not 204.

In XFormsModelSubmission.java [1], though, we test like this:

if (connectionResult.statusCode >= 200 && connectionResult.statusCode < 300)

So the issue must be somewhere else. Do you have a simple reproducible case?

-Erik

[1] http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/submission/XFormsModelSubmission.java

On Sat, Aug 14, 2010 at 10:39 AM, Louis Ratzesberger <[hidden email]> wrote:

>
> Hi Simon,
>
> I would report it at this point, and if there are other reasons, then they
> can respond -- and if anyone is looking there later, they might find
> the notes.
>
> Best,
> Hank
>
> Quoting Gunzenreiner Simon <[hidden email]>:
>
>> Hi Hank
>>
>>
>>
>> Good hint. In the meantime I made sure that I only get 200 instead of
>> 204 status codes. But - would you agree that it is a bug, in other
>> words, should I report it in the bug tracker. I am always hesitant in
>> reporting some behavior as a bug, and in the end it turns out it is a
>> correct behavior ...
>>
>>
>>
>> Regards
>>
>> Simon
>>
>>
>>
>> Von: Hank Ratzesberger [mailto:[hidden email]]
>> Gesendet: Freitag, 13. August 2010 23:23
>> An: [hidden email]
>> Betreff: [ops-users] Re: Handling of 204 HTTP status codes
>>
>>
>>
>>
>>
>> Hi Simon,
>>
>>
>>
>> A workaround is not to show the loading message at all, on the
>> submission element:
>>
>>
>>
>> xxforms:show-progress="false"
>>
>>
>>
>> --Hank
>>
>>
>>
>> On Aug 13, 2010, at 1:03 AM, Gunzenreiner Simon wrote:
>>
>>
>>
>>
>>
>> Hi all
>>
>> My version of the RestEasy framework returns a 204 status code, if my
>> Restful WS call's response is empty. The reaction of the xforms engine
>> is, that the browser's page is not updated (that's OK), but the "Loading
>> ..." sign does not disappear. If the server sends a 200 response code,
>> the empty response page is shown, and the "Loading ..." sign disappears
>> correctly.
>>
>> Any hints how to fix this?
>>
>> Best regards,
>>
>> Simon
>>
>>
>>
>>
>> --
>> 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
>>
>>
>>
>> Hank Ratzesberger
>>
>> NEES@UCSB
>>
>> Earth Research Institute
>>
>> University of California, Santa Barbara
>>
>> 805-893-8042
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
> --
> Hank Ratzesberger
> [hidden email]
>
>
>
> --
> 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