Skip to content

DATAJPA-1182 - Validate method parameters on query construction. #228

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

Closed
wants to merge 4 commits into from

Conversation

schauder
Copy link
Contributor

For “In” and “NotIn” queries not providing a collection like argument results in an IllegalStateException at initialization time.

Conversely providing a collection as an argument for a query other than “In” or “NotIn” also throws such an exception.

@schauder schauder force-pushed the issue/DATAJPA-1182 branch from 8bdc7b9 to 8049d03 Compare July 20, 2018 09:31
For “In” and “NotIn” queries not providing a collection like argument results in an IllegalStateException at initialisation time.

Conversely providing a collection as argument for a query other than “In” or “NotIn” also throws such an exception.
Spring Operator added 2 commits March 20, 2019 09:15
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://projects.spring.io/spring-data-jpa with 1 occurrences migrated to:
  https://projects.spring.io/spring-data-jpa ([https](https://projects.spring.io/spring-data-jpa) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 1 occurrences

Original pull request: #324
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 347 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Original Pull Request: #357
@schauder
Copy link
Contributor Author

schauder commented May 7, 2019

See Jira for review comments https://jira.spring.io/browse/DATAJPA-1182

mp911de pushed a commit that referenced this pull request May 27, 2019
For “In” and “NotIn” queries not providing a collection like argument results in an IllegalStateException at initialisation time.

Conversely providing a collection as argument for a query other than “In” or “NotIn” also throws such an exception.

Original pull request: #228.
mp911de added a commit that referenced this pull request May 27, 2019
Reduce loop nesting. Tweak exception message wording. Simplify tests.

Original pull request: #228.
@mp911de
Copy link
Member

mp911de commented May 27, 2019

That's merged and polished now.

@mp911de mp911de closed this May 27, 2019
@mp911de mp911de deleted the issue/DATAJPA-1182 branch May 27, 2019 07:59
stsypanov pushed a commit to stsypanov/spring-data-jpa that referenced this pull request Dec 13, 2019
For “In” and “NotIn” queries not providing a collection like argument results in an IllegalStateException at initialisation time.

Conversely providing a collection as argument for a query other than “In” or “NotIn” also throws such an exception.

Original pull request: spring-projects#228.
stsypanov pushed a commit to stsypanov/spring-data-jpa that referenced this pull request Dec 13, 2019
Reduce loop nesting. Tweak exception message wording. Simplify tests.

Original pull request: spring-projects#228.
@ahaczewski
Copy link

Hi Guys,
What would be the best way of reporting bug against this PR? We have a situation where we have custom JPA @Converter for Protobuf's ByteString, which happens to be Iterable. The repository can't be created, because of this validation checking for Iterable where scalar is expected, but our @Converter works making scalar base-64 string from that ByteString and it worked perfectly with 2.1, but fails due to this validation in 2.2.

@schauder
Copy link
Contributor Author

@ahaczewski create an issue in Jira: https://jira.spring.io/projects/DATAJPA

@ahaczewski
Copy link

Thanks @schauder, reported as https://jira.spring.io/browse/DATAJPA-1682, hope it is enough.

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

Successfully merging this pull request may close these issues.

3 participants