Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57807

Stapler JS proxy not correctly created for classes implementing StaplerProxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core

      If a method of a Stapler model object S is annotated with @JavaScriptMethod then code to access this method using an Ajax call is automatically generated. If the model object implement StaplerProxy and thus delegates all UI logic to a new object P of a different class then the invocation of the @JavaScriptMethod (that is now part of the class P) does not work anymore. In order to get this working again, one needs to add an additional empty method with the same name in the class S that is also marked with @JavaScriptMethod.

      See ChangeLog of warnings plugin 5.1.0 for details.

            Unassigned Unassigned
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: