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

Block new item creation with single quote in name

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      If job name contains a single quote, Jenkins allows to create it.
      However, a user cannot delete such job. Clicking "Delete Project" throws
      "SyntaxError: missing ) after argument list"

        Attachments

          Issue Links

            Activity

            Hide
            ks_nenasheva Kseniia Nenasheva added a comment -

            Daniel Beck my bad. The issue still happens.

            Reproduction steps:

            1. Create new job with single quote in name (job'x)
            2. Go to /jenkins/job/job'x/
            3. Click "Delete Project"

            A.R.: Job hasn't been deleted. Error message doesn't appear.

            This ticket hasn't been reproduced, if you have not opened job's page (step #2) and used drop-down menu in View (please see attached file).

             

            Show
            ks_nenasheva Kseniia Nenasheva added a comment - Daniel Beck my bad. The issue still happens. Reproduction steps: Create new job with single quote in name (job'x) Go to /jenkins/job/job'x/ Click "Delete Project" A.R.: Job hasn't been deleted. Error message doesn't appear. This ticket hasn't been reproduced, if you have not opened job's page (step #2) and used drop-down menu in View (please see attached file).  
            Hide
            danielbeck Daniel Beck added a comment -

            Kseniia Nenasheva Would be interesting to know whether it was fixed between 2.25 and 2.26, if so, PR 1943 did it.

            Show
            danielbeck Daniel Beck added a comment - Kseniia Nenasheva Would be interesting to know whether it was fixed between 2.25 and 2.26, if so, PR 1943 did it.
            Hide
            ks_nenasheva Kseniia Nenasheva added a comment - - edited

            Cannot reproduced on Jenkins 2.63-SNAPSHOT

            Show
            ks_nenasheva Kseniia Nenasheva added a comment - - edited Cannot reproduced on Jenkins 2.63-SNAPSHOT
            Hide
            danielbeck Daniel Beck added a comment -

            Looks similar to JENKINS-31871 – the bug in the JS should be fixed rather than prohibit chars.

            Show
            danielbeck Daniel Beck added a comment - Looks similar to JENKINS-31871 – the bug in the JS should be fixed rather than prohibit chars.

              People

              • Assignee:
                samat Samat Davletshin
                Reporter:
                samat Samat Davletshin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: