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

Priority Sorter - Mismatch between client request and server parsing

    • 4.0.1 released Nov 27, 2021

      When trying to set configuration for jobs in "included in a View" mode, saving the configuration will always fail : the JSON sent has a shape different from what the server expects.

      • The client sends the following request
            {
              ...,
              "jobFilter": true|false,
              "jobPattern": "some pattern",
              ...
            }
            
      • The server expects the following request
            {
              ...,
              "jobFilter": {
                "jobPattern": "some pattern"
              },
              ...
            }
            

        or

            {
              ...,
              "jobFilter": null,
              ...
            }
            

      This causes the server to Error 500 upon receiving the request.

      Fixing the request this way using e.g. browser's developer panel works around the issue.

          [JENKINS-66938] Priority Sorter - Mismatch between client request and server parsing

          Thomas Bessou created issue -
          Thomas Bessou made changes -
          Description Original: When trying to set configuration for jobs in "included in a View" mode, saving the configuration will always fail : the JSON sent has not the shape the server expects.
           - The client sends the following request
          {code:json}
              {
                ...,
                "jobFilter": true|false,
                "jobPattern": "some pattern",
                ...
              }
              {code}

           - The server expects the following request
          {code:json}
              {
                ...,
                "jobFilter": {
                  "jobPattern": "some pattern"
                },
                ...
              }
              {code}
          or
          {code:json}
              {
                ...,
                "jobFilter": null,
                ...
              }
              {code}

          This causes the server to Error 500 upon receiving the request.

          Fixing the request this way using e.g. browser's developer panel works around the issue.
          New: When trying to set configuration for jobs in "included in a View" mode, saving the configuration will always fail : the JSON sent has a shape different from what the server expects.
           - The client sends the following request
          {code:json}
              {
                ...,
                "jobFilter": true|false,
                "jobPattern": "some pattern",
                ...
              }
              {code}

           - The server expects the following request
          {code:json}
              {
                ...,
                "jobFilter": {
                  "jobPattern": "some pattern"
                },
                ...
              }
              {code}
          or
          {code:json}
              {
                ...,
                "jobFilter": null,
                ...
              }
              {code}

          This causes the server to Error 500 upon receiving the request.

          Fixing the request this way using e.g. browser's developer panel works around the issue.
          Sigitas P made changes -
          Attachment New: first_post(step_1).json [ 56771 ]
          Sigitas P made changes -
          Attachment New: second_post(step_4).json [ 56772 ]
          Basil Crow made changes -
          Link New: This issue duplicates JENKINS-65859 [ JENKINS-65859 ]
          Mark Waite made changes -
          Labels New: tables-to-divs-regression
          Mark Waite made changes -
          Link New: This issue is duplicated by JENKINS-67218 [ JENKINS-67218 ]
          Mark Waite made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Mark Waite made changes -
          Assignee New: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Mark Waite made changes -
          Remote Link New: This issue links to "CI job link to download build prototype (Web Link)" [ 27257 ]

            markewaite Mark Waite
            ten0 Thomas Bessou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: