IQSS / IQSS/dataverse

The validateBoundingBox method fails with values having more than 5 decimal places.

Open
#11,559 4 comments 1 reaction 1 assignee View on GitHub

@tuannx is already working on this.

Since Sep 10, 2026.

Feature: Geospatial Help Wanted: Code Mentor: pdurbin Type: Bug
Dominant language
Java
Stars
1.1k
Forks
564
Avg merge
2d 2h
Merged PRs (30d)
29

Description

What steps does it take to reproduce the issue?

Create a Dataset with a Geographic Bounding Box field.

Enter coordinates with more than 5 decimal places - for example, set South greather than North or West greather than East using 6 decimal places.

  • When does this issue occur?

Geographic Bounding Box validation.

  • Which page(s) does it occurs on?

Create/Edit Dataset

  • What happens?

When a user creates a Geographic Bounding Box field and enters values with more than 5 decimal places, the validation is not correct. Dataverse saves the Dataset, but Solr cannot index the item and throws an exception.

  • To whom does it occur (all users, curators, superusers)?

All users

  • What did you expect to happen?

Dataverse thows error message: "Geographic Bounding Box has invalid coordinates. East must be greater than West and North must be greater than South. Missing values are NOT allowed."

Which version of Dataverse are you using?

First observed in version 6.4, and it still occurs in 6.6.

Any related open or closed issues to this bug report?

No

Screenshots:

No matter the issue, screenshots are always welcome.

To add a screenshot, please use one of the following formats and/or methods described here:

Image

Image

Are you thinking about creating a pull request for this issue?
Help is always welcome, is this bug something you or your organization plan to fix?

Yes.

The method verifyBoundingBoxCoordinatesWithinRange should compare BigDecimal values instead of Float for greater precision. This does not affect performance if used only to validate coordinates.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.