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

          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.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: