Uploaded image for project: 'GeoServer'
  1. GEOS-8288

Changing the workspace of a style causes an ArrayIndexOutOfBounds exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.11.2
    • Fix Version/s: 2.11.3, 2.12-beta
    • Component/s: GWC
    • Labels:
      None

      Description

      Changing only the workspace of a style causes an ArrayIndexOutOfBoundsException to occur in the CatalogStyleChangeListener:

      java.lang.ArrayIndexOutOfBoundsException: -1
      	at java.util.ArrayList.elementData(ArrayList.java:418)
      	at java.util.ArrayList.get(ArrayList.java:431)
      	at org.geoserver.gwc.layer.CatalogStyleChangeListener.handleModifyEvent(CatalogStyleChangeListener.java:96)
      	at org.geoserver.catalog.impl.CatalogImpl.event(CatalogImpl.java:1549)
      	at org.geoserver.catalog.impl.CatalogImpl.fireModified(CatalogImpl.java:1518)
      	at org.geoserver.catalog.impl.AbstractCatalogFacade.beforeSaved(AbstractCatalogFacade.java:83)
      	at org.geoserver.catalog.impl.DefaultCatalogFacade.save(DefaultCatalogFacade.java:783)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.geoserver.catalog.LockingCatalogFacade.invoke(LockingCatalogFacade.java:36)
      	at com.sun.proxy.$Proxy20.save(Unknown Source)
      	at org.geoserver.catalog.impl.CatalogImpl.save(CatalogImpl.java:1444)
      	at org.geoserver.security.SecureCatalogImpl.save(SecureCatalogImpl.java:1397)
      	at org.geoserver.catalog.impl.AbstractFilteredCatalog.save(AbstractFilteredCatalog.java:765)
      	at org.geoserver.catalog.impl.AbstractCatalogDecorator.save(AbstractCatalogDecorator.java:497)
      	at org.geoserver.wms.web.data.StyleEditPage.onStyleFormSubmit(StyleEditPage.java:122)
      	at org.geoserver.wms.web.data.AbstractStylePage$1.onSubmit(AbstractStylePage.java:141)
      	at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1315)
      	at org.apache.wicket.markup.html.form.Form.process(Form.java:976)
      	at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:797)
      	at org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:171)
      

        Attachments

          Activity

            People

            • Assignee:
              tbarsballe Torben Barsballe
              Reporter:
              dtucker Devon Tucker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Stride room