Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27512

Renaming role to a space leads to an error that should be gracefully handled

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: 1.9.1, 1.7.4, 1.10.0
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Operating System: Debian 8
      PHP Version: 5.6.30-0+deb8u1
      Database and version: Mysql 5.5.54-0+deb8u1
      Browser (and version): Firefox 54
      Env: Prod

      Description

      This is a follow-up of EZP-25197

      When we set a space as a role name, we have e notification saying

       Failed to load 'http://ezp60.local/pjax/role/update/8' 
      

      and the response I have on developer tools from the browser is

      <html>
          <head>
              <meta charset="UTF-8" />
              <title>An Error Occurred: Bad Request</title>
          </head>
          <body>
              <h1>Oops! An Error Occurred</h1>
              <h2>The server returned a "400 Bad Request".</h2>
       
              <div>
                  Something is broken. Please let us know what you were doing when this error occurred.
                  We will fix it as soon as possible. Sorry for any inconvenience caused.
              </div>
          </body>
      </html>
      

      Steps to Reproduce
      • Create a new role
      • Set the name as a space
      • Save the role

        Issue Links

          Activity

          Paulo Nunes (Inactive) created issue -
          Paulo Nunes (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Paulo Nunes (Inactive) made changes -
          Link This issue discovered while testing EZP-25197 [ EZP-25197 ]
          Paulo Nunes (Inactive) made changes -
          Description This is a follow-up of EZP-25197

          When we set a space as a role name, we have e notification saying
          {noformat}
           Failed to load 'http://ezp60.local/pjax/role/update/8&#39;
          {noformat}
          and the response I have on developer tools from the browser is
          {noformat}
          <html>
              <head>
                  <meta charset="UTF-8" />
                  <title>An Error Occurred: Bad Request</title>
              </head>
              <body>
                  <h1>Oops! An Error Occurred</h1>
                  <h2>The server returned a "400 Bad Request".</h2>

                  <div>
                      Something is broken. Please let us know what you were doing when this error occurred.
                      We will fix it as soon as possible. Sorry for any inconvenience caused.
                  </div>
              </body>
          </html>
          {noformat}

          h5.Steps to Reproduce
          - Create a new role
          - Set the name as an empty space
          - Save the role
          This is a follow-up of EZP-25197

          When we set a space as a role name, we have e notification saying
          {noformat}
           Failed to load 'http://ezp60.local/pjax/role/update/8&#39;
          {noformat}
          and the response I have on developer tools from the browser is
          {noformat}
          <html>
              <head>
                  <meta charset="UTF-8" />
                  <title>An Error Occurred: Bad Request</title>
              </head>
              <body>
                  <h1>Oops! An Error Occurred</h1>
                  <h2>The server returned a "400 Bad Request".</h2>

                  <div>
                      Something is broken. Please let us know what you were doing when this error occurred.
                      We will fix it as soon as possible. Sorry for any inconvenience caused.
                  </div>
              </body>
          </html>
          {noformat}

          h5.Steps to Reproduce
          - Create a new role
          - Set the name as a space
          - Save the role
          Paulo Nunes (Inactive) made changes -
          Summary Renaming role toa space leads to an error that should be gracefully handled Renaming role to a space leads to an error that should be gracefully handled
          Show
          Adam Wójs added a comment - PR: https://github.com/ezsystems/repository-forms/pull/137
          Adam Wójs made changes -
          Affects Version/s 1.7.4 [ 14711 ]
          Adam Wójs made changes -
          Assignee Adam Wójs [ adam.wojs@ez.no ]
          Adam Wójs made changes -
          Status Confirmed [ 10037 ] Backlog [ 10000 ]
          Adam Wójs made changes -
          Status Backlog [ 10000 ] Development [ 3 ]
          Adam Wójs made changes -
          Status Development [ 3 ] Development Review [ 10006 ]
          Adam Wójs made changes -
          Link This issue relates to EZP-27690 [ EZP-27690 ]
          Adam Wójs made changes -
          Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
          Assignee Adam Wójs [ adam.wojs@ez.no ]
          Paulo Nunes (Inactive) made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved
          Paulo Nunes (Inactive) made changes -
          Assignee Paulo Nunes [ paulo.nunes@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 104275 ] EZEE Development Workflow [ 126565 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          8s 1 Paulo Nunes 20/Jun/17 5:14 PM
          Confirmed Confirmed Backlog Backlog
          30d 22h 18m 1 Adam Wójs 21/Jul/17 3:32 PM
          Backlog Backlog Development Development
          3s 1 Adam Wójs 21/Jul/17 3:32 PM
          Development Development Development Review Development Review
          6s 1 Adam Wójs 21/Jul/17 3:32 PM
          Development Review Development Review Documentation Review done Documentation Review done
          12d 20h 5m 1 Adam Wójs 03/Aug/17 11:38 AM
          Documentation Review done Documentation Review done QA QA
          15m 9s 1 Paulo Nunes 03/Aug/17 11:53 AM
          QA QA Closed Closed
          3h 4m 1 Paulo Nunes 03/Aug/17 2:57 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: