Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-2926

Infinite loop in WorkspaceRightContextConvertor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.1.6, 4.2.0
    • 4.1.4, 4.2.0
    • Plugin core, Rights
    • None
    • 4.2 M5

      When calling RightManager#hasRight whith a string object "/${WorkspaceName}", and the calls comes from a Schedulable and not a pipeline, there is an infinite loop in WorkspaceRightContextConvertor in convert method.

      Indeed,

      String currentWorkspace = (String) request.getAttribute(WorkspaceMatcher.WORKSPACE_NAME);

      (line 66) returns null, so resolvedContext remains "/${WorkspaceName}" instead of being replaced in line 67 and the call in line 71 in all convertors resuls to the same method being called with the same arguments over and over.

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: