• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker

      steps to re-produce the issues:

       

      go to https://localhost:8080/manage/configure, and just click save button (you don't even need to add/update a yaml config). it will report error occurred.

      the following error messages logged:

       

      // 
      Jul 11 03:14:54 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:54.574+0000 [id=18]#011INFO#011h.p.b.g.GlobalTimeOutConfiguration#configure: global timeout has been cleared
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:55.043+0000 [id=18]#011WARNING#011o.e.j.s.h.ContextHandler$Context#log: Error while serving http://192.168.0.60:8080/manage/configSubmit
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: net.sf.json.JSONException: JSONObject["configs"] is not a JSONArray.
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at net.sf.json.JSONObject.getJSONArray(JSONObject.java:1986)
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at io.jenkins.plugins.globalyamlproperties.GlobalYAMLPropertiesConfiguration.configure(GlobalYAMLPropertiesConfiguration.java:77)
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:4039)
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:4003)
      Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
       

          [JENKINS-71618] failed to save config

          Chao created issue -
          Chao made changes -
          Environment Original: java -version
          openjdk version "17.0.7" 2023-04-18 LTS
          OpenJDK Runtime Environment Corretto-17.0.7.7.1 (build 17.0.7+7-LTS)
          OpenJDK 64-Bit Server VM Corretto-17.0.7.7.1 (build 17.0.7+7-LTS, mixed mode, sharing)

          Jenkins version:
          2.401.2
          New: java -version
          openjdk version "17.0.7" 2023-04-18 LTS
          OpenJDK Runtime Environment Corretto-17.0.7.7.1 (build 17.0.7+7-LTS)
          OpenJDK 64-Bit Server VM Corretto-17.0.7.7.1 (build 17.0.7+7-LTS, mixed mode, sharing)

          Jenkins version:
          2.401.2

          global YAML Properties plugin version: 1.14.v938306960b_c3
          Chao made changes -
          Description Original: steps to re-produce the issues:

           

          go to [https://localhost:8080/manage/configure,] and just click save button (you don't even need to add/update a yaml config). it will reported error occurred.

          the following error messages logged:

           
          {code:java}
          //
          Jul 11 03:14:54 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:54.574+0000 [id=18]#011INFO#011h.p.b.g.GlobalTimeOutConfiguration#configure: global timeout has been cleared
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:55.043+0000 [id=18]#011WARNING#011o.e.j.s.h.ContextHandler$Context#log: Error while serving http://192.168.0.60:8080/manage/configSubmit
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: net.sf.json.JSONException: JSONObject["configs"] is not a JSONArray.
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at net.sf.json.JSONObject.getJSONArray(JSONObject.java:1986)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at io.jenkins.plugins.globalyamlproperties.GlobalYAMLPropertiesConfiguration.configure(GlobalYAMLPropertiesConfiguration.java:77)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:4039)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:4003)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
           {code}
          New: steps to re-produce the issues:

           

          go to [https://localhost:8080/manage/configure,] and just click save button (you don't even need to add/update a yaml config). it will report error occurred.

          the following error messages logged:

           
          {code:java}
          //
          Jul 11 03:14:54 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:54.574+0000 [id=18]#011INFO#011h.p.b.g.GlobalTimeOutConfiguration#configure: global timeout has been cleared
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: 2023-07-11 03:14:55.043+0000 [id=18]#011WARNING#011o.e.j.s.h.ContextHandler$Context#log: Error while serving http://192.168.0.60:8080/manage/configSubmit
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: net.sf.json.JSONException: JSONObject["configs"] is not a JSONArray.
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at net.sf.json.JSONObject.getJSONArray(JSONObject.java:1986)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at io.jenkins.plugins.globalyamlproperties.GlobalYAMLPropertiesConfiguration.configure(GlobalYAMLPropertiesConfiguration.java:77)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.configureDescriptor(Jenkins.java:4039)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at jenkins.model.Jenkins.doConfigSubmit(Jenkins.java:4003)
          Jul 11 03:14:55 fcai-vm-01 jenkins[14185]: #011at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
           {code}
          Vladislav made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Labels Original: plugin New: plugin tables-to-divs-regression
          Chao made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

            vladyslav_kovalov Vladyslav Kovalov
            caichao1103 Chao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: