Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-848

Client-Proxy: getting a property of an entity flags the entity as changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.1.0
    • (Java) V4 4.2.0
    • odata4-ext
    • None

    Description

      An entity is loaded and a getter is called on the entity. This results to a call of getPropertyValue in AbstractStructuredInvocationHandler. When a value is found, the value is cached and it is added to the list of property changes:
      if (res != null) {
      addPropertyChanges(name, res);
      propertyCache.put(name, res);
      }

      As a result EntityInvocationHandler.isChanged claims that the entity is changed and a flush would try to update the entity on the server.

      Retrieving a property of an entity should not flag the entity as changed.

      Attachments

        Activity

          People

            chrisam Christian Amend
            frederik.zimmer Frederik Zimmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: