Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2740

Removing ASO from session doesn't remove its key

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1.6
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None

      Description

      Setting InjectState object to null removes it from session, but its InjectStateFlag still returns true.
      Method store in ApplicationStateManagerImpl probably should look like this:
      public void store(String objectName, Object stateObject)
      {
      _registry.get(objectName).store(stateObject); // remove object
      if (stateObject == null)

      { _stateObjects.remove(objectName); // remove key }

      else

      { _stateObjects.put(objectName, stateObject); }

      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pwojnowski Przemysław Wojnowski
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: