[Geoserver-devel] [JIRA] (GEOS-9794) Importer REST API Unable to change Style

Schalk Grobbelaar created an issue

GeoServer / BugGEOS-9794

Importer REST API Unable to change Style

Issue Type:

BugBug

Assignee:

Unassigned

Created:

17/Nov/20 11:29 AM

Priority:

HighestHighest

Reporter:

Schalk Grobbelaar

I can publish a layer through the REST API. Problem is when I want to change the style name (PUT) before publishing and then pusblish I get an error like:

2020-11-17 12:11:40,643 WARN [geoserver.importer] - Task failed during import: org.geoserver.importer.ImportTask@anonymised.com
java.lang.NullPointerException: Style fileName must not be null
        at org.geoserver.catalog.impl.CatalogImpl.validate(CatalogImpl.java:1509)
        at org.geoserver.catalog.impl.CatalogImpl.add(CatalogImpl.java:1497)
        at org.geoserver.security.SecureCatalogImpl.add(SecureCatalogImpl.java:1226)
        at org.geoserver.catalog.impl.AbstractFilteredCatalog.add(AbstractFilteredCatalog.java:542)
        at org.geoserver.catalog.impl.AbstractCatalogDecorator.add(AbstractCatalogDecorator.java:473)
        at org.geoserver.importer.Importer.addToCatalog(Importer.java:1637)
        at org.geoserver.importer.Importer.doDirectImport(Importer.java:1096)
        at org.geoserver.importer.Importer.run(Importer.java:964)
        at org.geoserver.importer.Importer.runInternal(Importer.java:930)
        at org.geoserver.importer.Importer$4.callInternal(Importer.java:1001)
        at org.geoserver.importer.Importer$4.callInternal(Importer.java:994)
        at org.geoserver.importer.Importer$SecurityContextCopyingJob.call(Importer.java:1032)
        at org.geoserver.importer.job.Job.call(Job.java:16)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        at java.base/java.lang.Thread.run(Thread.java:832)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100150-sha1:30d9359)

Atlassian logo