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

TransactionPlugin can no longer alter transaction items

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.13-beta
    • Component/s: WFS
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              aaime Andrea Aime
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: