Jody Garnett ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-10301?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 ) GEOS-10301 ( 
https://osgeo-org.atlassian.net/browse/GEOS-10301?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 ) incompatibility with ogcapi and editing sld styles ( 
https://osgeo-org.atlassian.net/browse/GEOS-10301?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.20.0 Assignee: Unassigned Components: 
Community modules, Main Created: 11/Nov/21 5:23 PM Environment:

Tested Adoption (formally Adopt OpenJDK) "Temurin" in a number of linux docker 
containers, and macOS:

* Temurin: 1.8.0_302 (OpenJDK 64-Bit Server VM)
* Temurin: 1.8.0_312

Priority: Medium Reporter: Jody Garnett ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Ae422bb7f-4808-47e3-837f-13db0e6681e3
 )

Okay I know ogcapi community module is not supported yet, but as the code that 
is broken is located in `main` I am going to make a bug report.

java.io.IOException: Stream closed
   at java.io.BufferedReader.ensureOpen(BufferedReader.java:122)
   at java.io.BufferedReader.reset(BufferedReader.java:510)
   at org.geoserver.catalog.SLDHandler.getVersionAndReader(SLDHandler.java:388)
   at org.geoserver.catalog.SLDHandler.version(SLDHandler.java:334)
   at 
org.geoserver.wms.web.data.StyleNewPage.onStyleFormSubmit(StyleNewPage.java:76)

The file `SLDHandler` was revised by Gabriel to use built-in java parsing, 
rather than explicitly depend on STAX resulting in:

       } finally {
           // release parser resources, does not close input stream
           try {
               parser.close();
           } catch (XMLStreamException e) {
               LOGGER.log(Level.WARNING, "Non fatal error closing XML Stream 
Parser" , e);
           }
       }
       // reset input stream
       reader.reset(); <-- error occurs here

In most environments the *parser.close();* does not close the input stream (as 
described in the comment), but when running with the *ogcapi* community module 
an alternate parser is used (woodstox parser) and the above failure is observed.

( 
https://osgeo-org.atlassian.net/browse/GEOS-10301#add-comment?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-10301#add-comment?atlOrigin=eyJpIjoiZWYyNDAyYmJmNGY1NDE2Mjk1OWY0NDFmZmZhNWM5Y2IiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100183- 
sha1:1bc0b1f )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to