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

Support POST requests to the /blue/rest/classes/?q= endpoint

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major Major
    • blueocean-plugin
    • None
    • 1.0-b05/b-06

      TL;DR: support method=POST for the /blue/rest/classes API so very long values for "classList" can be sent.

      The new capabilities code on the frontend (JENKINS-37519) may potentially call the /blue/rest/classes?q=classList API with a very long "classList" parameter (in some cases over 1700 chars long). Some browsers have problems with URL's over 2000 characters, although it's unclear whether that applies to fetch / XHR calls or just URLs pasted into the address bar UI. To be safe it would be good to support the POST method so we can send large "classList" values in the body and avoid any potential problems.

      Also fix these issues:

      • For pipeline-related things, I think it would be good to refactor the string values into static string constants in a single class (or possibly an enum( to ensure consistent values are used throughout and make it easier to see what capabilities are available.
      • Fix typo in BranchImpl.java ("io.jenkins.blueocean.rest.impl.pipeline.PullReuqest")

            vivek Vivek Pandey
            cliffmeyers Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: