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

REST search type restriction should allow space-separated list #535

Closed
osma opened this issue Jun 20, 2016 · 0 comments
Closed

REST search type restriction should allow space-separated list #535

osma opened this issue Jun 20, 2016 · 0 comments

Comments

@osma
Copy link
Member

osma commented Jun 20, 2016

At which URL did you encounter the problem?

http://api.finto.fi/rest/v1/koko/search?query=kissa&type=http%3A%2F%2Fwww.yso.fi%2Fonto%2Fyso-meta%2FConcept%20http%3A%2F%2Fwww.yso.fi%2Fonto%2Fjupo-meta%2FConcept

What steps will reproduce the problem?

  1. Perform REST search with multiple type values as a space-separated list

What is the expected output? What do you see instead?

Expected that the type restriction would be applied (OR semantics). Instead getting a SPARQL error.

The problem is that in ConceptSearchParameters.getTypeLimit() the type parameter is split by plus sign, not space. The value should be split by space, just like the fields parameter.

@osma osma added this to the 1.8 milestone Jun 20, 2016
@osma osma closed this as completed in 54b3035 Jun 20, 2016
osma added a commit that referenced this issue Jun 20, 2016
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