Enforce project name length checking

Bug #1276389 reported by Yuanhui Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Undecided
Yuanhui Liu

Bug Description

Currently in Project create / update, there is no checking on the project name length. But once the form is submitted, the system actually checked the length of the project name and reported error on that, as shown below:

RESP BODY: {"error": {"message": "Project name should not be greater than 64 characters.", "code": 400, "title": "Bad Request"}}

It would be better checking this on the front end and display the specific error message.

Yuanhui Liu (liuyu)
Changed in horizon:
assignee: nobody → Yuanhui Liu (liuyu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/71400

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/71400
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ff82969f4c3c501f68953bf3659c1c2e05d075f6
Submitter: Jenkins
Branch: master

commit ff82969f4c3c501f68953bf3659c1c2e05d075f6
Author: Yuanhui Liu <email address hidden>
Date: Wed Feb 5 11:10:22 2014 -0800

    Restrict the length of the project name input

    There is an allowed maximum length for project name field, but in
    current code, it doesn't check or restrict that from UI side, i.e. user
    will be able to type in more than what is allowed. After form
    submission, it will fail but there is no clear message telling user what
    caused failure.

    After adding the code to restrict the max length of the project name
    field, user will not be able to input more than what is allowed, thus
    this error will be prevented from UI.

    Change-Id: I6e61387c1e89e47e16354719870047c6e4760989
    Closes-Bug: #1276389

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-3 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.