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

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: High High
    • QA tracked issues
    • 1.9.1, 1.7.4, 1.10.0
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: