Compute from native bounds incorrect when declared SRS is EPSG:4326

Description

The "Compute from native bounds" link on the "Edit Layer" screen produces incorrect results when the Declared SRS is EPSG:4326 and the Native SRS is anything else. See attached screen shot.

The problem comes from the catalog builder using the native bounds without retrojecting them when the declared SRS is 4326.

See this source line:

https://github.com/geoserver/geoserver/blob/2.8.x/src/main/src/main/java/org/geoserver/catalog/CatalogBuilder.java#L528

Environment

OSX 10.11, Jetty

Assignee

Unassigned

Reporter

Devon Tucker

Triage

None

Fix versions

None

Affects versions

Components

Priority

Low
Configure