Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jersey client fails to parse Link header with multiple links #3769

Open
jerseyrobot opened this issue Feb 5, 2018 · 1 comment
Open

Jersey client fails to parse Link header with multiple links #3769

jerseyrobot opened this issue Feb 5, 2018 · 1 comment

Comments

@jerseyrobot
Copy link
Contributor

ClientResponse response ... 
response.getLinks()

fails when server returns a multi-valued link header like

<https://api.github.com/repositories/12345/commits?per_page=100&page=2>; rel="next", <https://api.github.com/repositories/12345/commits?per_page=100&page=2>; rel="last"

java.lang.IllegalArgumentException: java.text.ParseException: Expected separator ';' instead of ','
	at com.sun.jersey.core.header.LinkHeader.valueOf(LinkHeader.java:106)
	at com.sun.jersey.core.header.LinkHeaders.<init>(LinkHeaders.java:62)
	at com.sun.jersey.api.client.WebResourceLinkHeaders.<init>(WebResourceLinkHeaders.java:55)
	at com.sun.jersey.api.client.ClientResponse.getLinks(ClientResponse.java:733)
@jerseyrobot
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant