Skip to content

/suggest/series_country: returns an empty response when there is no suggestion #630

Closed
@php-coder

Description

@php-coder

When as admin I open /series/add page in Firefox, I see the following error in the developer console:

Ошибка синтаксического анализа XML: корневой элемент не найден
Адрес: http://localhost:8080/suggest/series_country
Строка 1, символ 1:

It turned out that /suggest/series_country returns an empty response. I see that also when I'm getting the response from the terminal:

$ http 'http://localhost:8080/suggest/series_country' Cookie:JSESSIONID=dyhl9vt2dr9g126hsqu0b0ict
HTTP/1.1 200 OK
Content-Length: 0
Date: Tue, 29 Aug 2017 20:43:54 GMT

Here the similar problem on StackOverflow: https://stackoverflow.com/questions/25650356/spring-ajax-responsebody-with-null-returned-values

Based on one of the answers, I think that we should try to return 204 No Content code and handle it accordingly on the client side.

@Shkarin JFYI

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions