Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-6625

TransactionSynchronizationUtils.unwrapResourceIfNecessary() overwrites InfrastructureProxy.getWrappedObject() results

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 3.0.1
    • Component/s: Transaction
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      The call to ScopedProxyUnwrapper.unwrapIfNecessary() within TransactionSynchronizationUtils.unwrapResourceIfNecessary() takes 'resource' as the input, rather than 'resourceRef', which causes the InfrastructureProxy's changes to be lost.

        Issue Links

          Activity

          Hide
          juergen.hoeller Juergen Hoeller added a comment -

          Ouch - that was an accident when refactoring the AOP check into an optional dependency. Fixed for 3.0.1.

          Juergen

          Show
          juergen.hoeller Juergen Hoeller added a comment - Ouch - that was an accident when refactoring the AOP check into an optional dependency. Fixed for 3.0.1. Juergen
          Hide
          mpilquist Michael Pilquist added a comment -

          FYI, I believe this issue causes problems with using JPA in an OSGi environment, where different bundles have different infrastructure proxy instances.

          Show
          mpilquist Michael Pilquist added a comment - FYI, I believe this issue causes problems with using JPA in an OSGi environment, where different bundles have different infrastructure proxy instances.

            People

            • Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              cmuchinsky Craig Muchinsky
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 29 weeks, 5 days ago