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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: