[Geoserver-devel] [JIRA] (GEOS-7403) TransactionPlugin can no longer alter transaction items

Andrea Aime [Administrator] created an issue

GeoServer / BugGEOS-7403

TransactionPlugin can no longer alter transaction items

Issue Type:

BugBug

Assignee:

Unassigned

Components:

WFS

Created:

04/Feb/16 6:34 PM

Priority:

MediumMedium

Reporter:

Andrea Aime [Administrator]

The TransactionPlugin interface states it’s possible to alter a transaction before its execution:

    /**
     * Check/alter the transaction request elements
     */
    TransactionType beforeTransaction(TransactionType request)
        throws WFSException;

Back in GeoServer 2.1 it was possible to do so by directly modifying the specified TransactionType (the returned one was ignored), but with the introduction of WFS 2.0
the plugin is getting a simple copy of the transaction object, at least for WFS 2.0 transactions, making it impossible to perform a change.

The TransactionListener.dataStoreChanged method can apparently modify inserts, but won’t work on updates and deletes.

Long story short, it seems currently the only way to alter a transaction before it kicks in is to write a DispatcherCallback

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.1.0-OD-05-006#71001-sha1:081cc1a)

Atlassian logo