[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if an error is produced during AJAX rendering and a redirect is issued

2023-09-19 Thread Ernesto Reinaldo Barreiro (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernesto Reinaldo Barreiro updated WICKET-7074:
--
Affects Version/s: 10.0.0-M1
   9.15.0

> [AJAX] malformed XML is produced if an error is produced during AJAX 
> rendering and a redirect is issued 
> 
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Affects Versions: 10.0.0-M1, 9.15.0
>Reporter: Ernesto Reinaldo Barreiro
>Assignee: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
> In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
> directly to response. See below
>  
>  
> {code:java}
> // code placeholder
> if (filters == null || filters.isEmpty())
> {
> update.writeTo(response, encoding);
> }
> else
> {
> final StringResponse bodyResponse = new StringResponse();
> update.writeTo(bodyResponse, encoding);
> CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
> filters);
> response.write(filteredResponse);
> } {code}
>  
> In case a "dynamic" error is produced and we use exception mapper to redirect 
> to an error page then generated response XML is of the form
>  
> {code:java}
> // code placeholder
>  encoding="UTF-8"?>{code}
> which is malfomed and this causes redirect to be broken. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if an error is produced during AJAX rendering and a redirect is issued

2023-09-19 Thread Ernesto Reinaldo Barreiro (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernesto Reinaldo Barreiro updated WICKET-7074:
--
Summary: [AJAX] malformed XML is produced if an error is produced during 
AJAX rendering and a redirect is issued   (was: [AJAX] malformed XML is 
produced if a error is produced during AJAX rendering and a redirect is issued )

> [AJAX] malformed XML is produced if an error is produced during AJAX 
> rendering and a redirect is issued 
> 
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Reporter: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
> In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
> directly to response. See below
>  
>  
> {code:java}
> // code placeholder
> if (filters == null || filters.isEmpty())
> {
> update.writeTo(response, encoding);
> }
> else
> {
> final StringResponse bodyResponse = new StringResponse();
> update.writeTo(bodyResponse, encoding);
> CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
> filters);
> response.write(filteredResponse);
> } {code}
>  
> In case a "dynamic" error is produced and we use exception mapper to redirect 
> to an error page then generated response XML is of the form
>  
> {code:java}
> // code placeholder
>  encoding="UTF-8"?>{code}
> which is malfomed and this causes redirect to be broken. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if a error is produced during AJAX rendering and a redirect is issued

2023-09-19 Thread Martin Tzvetanov Grigorov (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov updated WICKET-7074:
--
Description: 
In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
directly to response. See below

 

 
{code:java}
// code placeholder

if (filters == null || filters.isEmpty())
{
update.writeTo(response, encoding);
}
else
{
final StringResponse bodyResponse = new StringResponse();
update.writeTo(bodyResponse, encoding);
CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
filters);
response.write(filteredResponse);
} {code}
 

In case a "dynamic" error is produced and we use exception mapper to redirect 
to an error page then generated response XML is of the form

 
{code:java}
// code placeholder

{code}
which is malfomed and this causes redirect to be broken. 

 

  was:
In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
directly to response. See bellow

 

 
{code:java}
// code placeholder

if (filters == null || filters.isEmpty())
{
update.writeTo(response, encoding);
}
else
{
final StringResponse bodyResponse = new StringResponse();
update.writeTo(bodyResponse, encoding);
CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
filters);
response.write(filteredResponse);
} {code}
 

In case a "dynamic" error is produced and we use exception mapper to redirect 
to an error page then generated response XML is of the form

 
{code:java}
// code placeholder

{code}
which is malfomed and this causes redirect to be broken. 

 


> [AJAX] malformed XML is produced if a error is produced during AJAX rendering 
> and a redirect is issued 
> ---
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Reporter: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
> In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
> directly to response. See below
>  
>  
> {code:java}
> // code placeholder
> if (filters == null || filters.isEmpty())
> {
> update.writeTo(response, encoding);
> }
> else
> {
> final StringResponse bodyResponse = new StringResponse();
> update.writeTo(bodyResponse, encoding);
> CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
> filters);
> response.write(filteredResponse);
> } {code}
>  
> In case a "dynamic" error is produced and we use exception mapper to redirect 
> to an error page then generated response XML is of the form
>  
> {code:java}
> // code placeholder
>  encoding="UTF-8"?>{code}
> which is malfomed and this causes redirect to be broken. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if a error is produced during AJAX rendering and a redirect is issued

2023-09-19 Thread Martin Tzvetanov Grigorov (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Tzvetanov Grigorov updated WICKET-7074:
--
Description: 
In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
directly to response. See bellow

 

 
{code:java}
// code placeholder

if (filters == null || filters.isEmpty())
{
update.writeTo(response, encoding);
}
else
{
final StringResponse bodyResponse = new StringResponse();
update.writeTo(bodyResponse, encoding);
CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
filters);
response.write(filteredResponse);
} {code}
 

In case a "dynamic" error is produced and we use exception mapper to redirect 
to an error page then generated response XML is of the form

 
{code:java}
// code placeholder

{code}
which is malfomed and this causes redirect to be broken. 

 

  was:
In AjaxRequestHandler in case tehre are no filters defined AjaxUpdate writed 
directly to response. See bellow

 

 
{code:java}
// code placeholder

if (filters == null || filters.isEmpty())
{
update.writeTo(response, encoding);
}
else
{
final StringResponse bodyResponse = new StringResponse();
update.writeTo(bodyResponse, encoding);
CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
filters);
response.write(filteredResponse);
} {code}
 

In case a "dynamic" error is produced and we use exception mapper to redirect 
to an error page then generated resposnse XML is of the form

 
{code:java}
// code placeholder

{code}
which is malfomed and this cuases redirect to be broken. 

 


> [AJAX] malformed XML is produced if a error is produced during AJAX rendering 
> and a redirect is issued 
> ---
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Reporter: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
> In AjaxRequestHandler in case there are no filters defined AjaxUpdate written 
> directly to response. See bellow
>  
>  
> {code:java}
> // code placeholder
> if (filters == null || filters.isEmpty())
> {
> update.writeTo(response, encoding);
> }
> else
> {
> final StringResponse bodyResponse = new StringResponse();
> update.writeTo(bodyResponse, encoding);
> CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
> filters);
> response.write(filteredResponse);
> } {code}
>  
> In case a "dynamic" error is produced and we use exception mapper to redirect 
> to an error page then generated response XML is of the form
>  
> {code:java}
> // code placeholder
>  encoding="UTF-8"?>{code}
> which is malfomed and this causes redirect to be broken. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if a error is produced during AJAX rendering and a redirect is issued

2023-09-18 Thread Ernesto Reinaldo Barreiro (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernesto Reinaldo Barreiro updated WICKET-7074:
--
Description: 
In AjaxRequestHandler in case tehre are no filters defined AjaxUpdate writed 
directly to response. See bellow

 

 
{code:java}
// code placeholder

if (filters == null || filters.isEmpty())
{
update.writeTo(response, encoding);
}
else
{
final StringResponse bodyResponse = new StringResponse();
update.writeTo(bodyResponse, encoding);
CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
filters);
response.write(filteredResponse);
} {code}
 

In case a "dynamic" error is produced and we use exception mapper to redirect 
to an error page then generated resposnse XML is of the form

 
{code:java}
// code placeholder

{code}
which is malfomed and this cuases redirect to be broken. 

 

  was:
 

!https://private-user-images.githubusercontent.com/47206380/268768288-15727652-b33d-4c76-9994-a38f5950ce38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE2OTUwNjk2MzUsIm5iZiI6MTY5NTA2OTMzNSwicGF0aCI6Ii80NzIwNjM4MC8yNjg3NjgyODgtMTU3Mjc2NTItYjMzZC00Yzc2LTk5OTQtYTM4ZjU5NTBjZTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzA5MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMwOTE4VDIwMzUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzOTE5OWIwNjUyZThlN2NlZTNjNTA5ODliNzRmZWZjY2Q0OGRkYmNiZWE2MGM4MWM3MjhkZWZlMjhhNzAyZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SZ_AiPewVnyqvGQ6wgrsIQxJuoWNRe2h35oD7jibdxQ!


> [AJAX] malformed XML is produced if a error is produced during AJAX rendering 
> and a redirect is issued 
> ---
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Reporter: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
> In AjaxRequestHandler in case tehre are no filters defined AjaxUpdate writed 
> directly to response. See bellow
>  
>  
> {code:java}
> // code placeholder
> if (filters == null || filters.isEmpty())
> {
> update.writeTo(response, encoding);
> }
> else
> {
> final StringResponse bodyResponse = new StringResponse();
> update.writeTo(bodyResponse, encoding);
> CharSequence filteredResponse = invokeResponseFilters(bodyResponse, 
> filters);
> response.write(filteredResponse);
> } {code}
>  
> In case a "dynamic" error is produced and we use exception mapper to redirect 
> to an error page then generated resposnse XML is of the form
>  
> {code:java}
> // code placeholder
>  encoding="UTF-8"?>{code}
> which is malfomed and this cuases redirect to be broken. 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Updated] (WICKET-7074) [AJAX] malformed XML is produced if a error is produced during AJAX rendering and a redirect is issued

2023-09-18 Thread Ernesto Reinaldo Barreiro (Jira)


 [ 
https://issues.apache.org/jira/browse/WICKET-7074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ernesto Reinaldo Barreiro updated WICKET-7074:
--
Fix Version/s: 10.0.0-M2
   9.16.0

> [AJAX] malformed XML is produced if a error is produced during AJAX rendering 
> and a redirect is issued 
> ---
>
> Key: WICKET-7074
> URL: https://issues.apache.org/jira/browse/WICKET-7074
> Project: Wicket
>  Issue Type: Bug
>Reporter: Ernesto Reinaldo Barreiro
>Priority: Major
> Fix For: 10.0.0-M2, 9.16.0
>
>
>  
> !https://private-user-images.githubusercontent.com/47206380/268768288-15727652-b33d-4c76-9994-a38f5950ce38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE2OTUwNjk2MzUsIm5iZiI6MTY5NTA2OTMzNSwicGF0aCI6Ii80NzIwNjM4MC8yNjg3NjgyODgtMTU3Mjc2NTItYjMzZC00Yzc2LTk5OTQtYTM4ZjU5NTBjZTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzA5MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMwOTE4VDIwMzUzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzOTE5OWIwNjUyZThlN2NlZTNjNTA5ODliNzRmZWZjY2Q0OGRkYmNiZWE2MGM4MWM3MjhkZWZlMjhhNzAyZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SZ_AiPewVnyqvGQ6wgrsIQxJuoWNRe2h35oD7jibdxQ!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)