• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      Since r13987, Hudson no longer gets @ExportedBean annotation from parent class,
      View... so top level api/xml URL now gets an error. This should either be
      fixed, or the client-demo/Main app should use a different example URL.

          [JENKINS-2779] Top level api/xml gets 500 error

          Alan Harder added a comment -

          will make getApi() get its api from the primary view.

          Alan Harder added a comment - will make getApi() get its api from the primary view.

          Alan Harder added a comment -

          Read up on @Exported a bit.. found I can keep all the same data the api/xml had
          before (with a small difference in structure.. some data now in a <primaryView>
          element) by adding @ExportedBean on Hudson and @Exported(inline=true) on
          getPrimaryView.

          Alan Harder added a comment - Read up on @Exported a bit.. found I can keep all the same data the api/xml had before (with a small difference in structure.. some data now in a <primaryView> element) by adding @ExportedBean on Hudson and @Exported(inline=true) on getPrimaryView.

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=14171
          Log:
          [FIXED JENKINS-2779] Fix top level api/xml.
          (broken now that Hudson doesn't extend View)
          Added @ExportedBean on Hudson and @Exported(inline=true) on getPrimaryView
          to keep the same data that api/xml showed before, with small structural
          difference that some data is now inside a <primaryView> element.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java http://fisheye4.cenqua.com/changelog/hudson/?cs=14171 Log: [FIXED JENKINS-2779] Fix top level api/xml. (broken now that Hudson doesn't extend View) Added @ExportedBean on Hudson and @Exported(inline=true) on getPrimaryView to keep the same data that api/xml showed before, with small structural difference that some data is now inside a <primaryView> element.

            mindless Alan Harder
            mindless Alan Harder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: