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

Updates to hudson configuration not saved/messed up

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • build-publisher-plugin
    • None
    • Platform: All, OS: All

      I'm using hudson 1.306 but this has been happening in at least 1.297 version as
      well.

      In Hudson's global configuration, I removed the previously entered values for
      Hudson URL for Email notification and Extended Email Notification and saved the
      config page. But when I went back to check, the values were still there.

      Worse, the value for the Name of my Public Hudson Server in the Build Publishing
      section now was changed to the name of one of the other plugins that I
      installed: sidebar.

      I tried several times, un-installed the sidebar plugin, repeated the above steps
      again. The values for Hudson URL still stayed but the name of my Public Hudson
      Server was changed to yet another plugin: audit-trail.

      Now my build publishing is broken as the name of the Public Hudson Server no
      longer matches those in my jobs. I cannot change the name back to what it
      should be. Updates to global hudson configuration simply do not take.

          [JENKINS-3834] Updates to hudson configuration not saved/messed up

          Alan Harder added a comment -

          audit-trail and sidebar-link both use the Plugin.configure() API offered by
          Hudson core. Looks like the Build Publisher plugin has a conflict in its form
          data with this Hudson API.. specifically, using a form field with the name
          "name". I think if Build Publisher plugin renames this field in the form then
          this problem should be resolved. Changing subcategory for this issue.

          As a workaround for now, you can manually edit your
          $HUDSON_HOME/hudson.plugins.build_publisher.BuildPublisher.xml file and restart
          Hudson.

          Alan Harder added a comment - audit-trail and sidebar-link both use the Plugin.configure() API offered by Hudson core. Looks like the Build Publisher plugin has a conflict in its form data with this Hudson API.. specifically, using a form field with the name "name". I think if Build Publisher plugin renames this field in the form then this problem should be resolved. Changing subcategory for this issue. As a workaround for now, you can manually edit your $HUDSON_HOME/hudson.plugins.build_publisher.BuildPublisher.xml file and restart Hudson.

          dvrzalik added a comment -

          Yes, it's true, the plugin doesn't use any specific prefix for the field names.
          It is unfortunate and I should fix it but I won't be able to do so before I get
          back from vacation (more than two weeks from now). If anyone wants to step
          forwards, fix this and release new version, that would be highly appreciated.

          dvrzalik added a comment - Yes, it's true, the plugin doesn't use any specific prefix for the field names. It is unfortunate and I should fix it but I won't be able to do so before I get back from vacation (more than two weeks from now). If anyone wants to step forwards, fix this and release new version, that would be highly appreciated.

          Alan Harder added a comment -

          started

          Alan Harder added a comment - started

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/build-publisher/src/main/java/hudson/plugins/build_publisher/BuildPublisher.java
          trunk/hudson/plugins/build-publisher/src/main/resources/hudson/plugins/build_publisher/BuildPublisher/global.jelly
          http://fisheye4.cenqua.com/changelog/hudson/?cs=21210
          Log:
          [FIXED JENKINS-3834] add prefix on form field names in global config,
          to avoid conflict with other plugins.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/build-publisher/src/main/java/hudson/plugins/build_publisher/BuildPublisher.java trunk/hudson/plugins/build-publisher/src/main/resources/hudson/plugins/build_publisher/BuildPublisher/global.jelly http://fisheye4.cenqua.com/changelog/hudson/?cs=21210 Log: [FIXED JENKINS-3834] add prefix on form field names in global config, to avoid conflict with other plugins.

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

              Created:
              Updated:
              Resolved: