ICEfaces
  1. ICEfaces
  2. ICE-7925

ResourceRegistry resource names must be unique across restart

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.0.0.BETA
    • Fix Version/s: EE-3.0.0.GA
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces

      Description

      If dynamic resource names are not unique and collisions occur across server restarts, the behavior can be unpredictable.

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28383 Fri Mar 16 15:29:55 MDT 2012 ted.goddard use UUID for dynamic resource names (ICE-7925)
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/application/ResourceRegistry.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #28384 Fri Mar 16 15:31:38 MDT 2012 ted.goddard use UUID for dynamic resource names (ICE-7925)
          Files Changed
          Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/core/src/main/java/org/icefaces/application/ResourceRegistry.java
          Ted Goddard created issue -
          Ted Goddard made changes -
          Field Original Value New Value
          Assignee Ted Goddard [ ted.goddard ]
          Hide
          Ted Goddard added a comment -

          The current resource naming scheme made use of a scope prefix followed by an integer incremented for each resource created. This was unique for each time the server is started, but collisions could occur if the server is restarted and sessions are brought back from a serialized form. Potentially, collisions could also occur in a cluster, since different indexes would be used but user sessions would be replicated across the cluster.

          Show
          Ted Goddard added a comment - The current resource naming scheme made use of a scope prefix followed by an integer incremented for each resource created. This was unique for each time the server is started, but collisions could occur if the server is restarted and sessions are brought back from a serialized form. Potentially, collisions could also occur in a cluster, since different indexes would be used but user sessions would be replicated across the cluster.
          Hide
          Ted Goddard added a comment -

          The fix is to use a random UUID for all resource names not assigned by the application. In general, it is not recommended that the application assign a resource name unless there is a specific reason to do so.

          Show
          Ted Goddard added a comment - The fix is to use a random UUID for all resource names not assigned by the application. In general, it is not recommended that the application assign a resource name unless there is a specific reason to do so.
          Ted Goddard made changes -
          Link This issue blocks ICE-7685 [ ICE-7685 ]
          Ted Goddard made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Ted Goddard
              Reporter:
              Ted Goddard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: