Properly pass context in folder's page objects

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Let's describe the issue with a test. Assumming we already have an injector and a JenkinsController, the following test will fail:

      Jenkins j1 = new Jenkins(injector, jenkinsController);
      FolderItem f = j1.jobs.create(FolderItem.class);
      Assert.assertSame(j1, f.jobs.getJenkins());
      

      The problem reproduced is the same described in JENKINS-37615, but specific to {{FolderItem}}s, since they are not properly receiving their context when created.

            Assignee:
            Manuel Franco
            Reporter:
            Manuel Franco
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: