Skip to content

GEOWAVE-620. Fix GeoServer pluggin WFS-T startIndex query constraint#622

Merged
rfecher merged 1 commit into0.9.1from
GEOWAVE-620
Feb 12, 2016
Merged

GEOWAVE-620. Fix GeoServer pluggin WFS-T startIndex query constraint#622
rfecher merged 1 commit into0.9.1from
GEOWAVE-620

Conversation

@rwgdrummer
Copy link
Copy Markdown
Contributor

No description provided.

rfecher added a commit that referenced this pull request Feb 12, 2016
GEOWAVE-620.  Fix GeoServer pluggin WFS-T startIndex query constraint
@rfecher rfecher merged commit fdd883f into 0.9.1 Feb 12, 2016
final Long max = (limit != null) ?
limit.longValue() + (startIndex == null ? 0 : startIndex.longValue()) : null;
// limit only used if less than an integer max value.
limit = (max != null && max.longValue() > Integer.MAX_VALUE) ? max.intValue() : null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be limit = (max != null && max.longValue() < Integer.MAX_VALUE) ? max.intValue() : null; (less than Integer.MAX_VALUE, not greater than) ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry I merged and didn't catch this...

I'm pretty sure you're right.

@dcy2003
Copy link
Copy Markdown
Contributor

dcy2003 commented Feb 12, 2016

Suggest adding a test for this to one of the existing Integration Tests. If nothing else, should prevent us from unknowingly breaking it in the future.

@dcy2003 dcy2003 deleted the GEOWAVE-620 branch February 23, 2016 13:37
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