Object Upload is validated after object upload

Bug #1125232 reported by Stuart Stent
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Maxime Vidori

Bug Description

on the "Upload Object To Container" popup, if you select a file and do NOT enter an object name, you dont get a failure message until after the file has uploaded.

There should be some client side valiadtion of the Object Name field on pressing the "Upload Object" button

Changed in horizon:
importance: Undecided → Medium
milestone: none → havana-1
status: New → Confirmed
Fab-stark (m-fabe)
Changed in horizon:
assignee: nobody → Fab-stark (m-fabe)
Changed in horizon:
milestone: havana-1 → havana-2
Changed in horizon:
milestone: havana-2 → havana-3
Changed in horizon:
milestone: havana-3 → none
Revision history for this message
Cristian A Sanchez (cristian-a-sanchez) wrote :

This bug have been there for a long time. Fab: is it ok if I assign this to me?

Changed in horizon:
assignee: Fab-stark (m-fabe) → Cristian A Sanchez (cristian-a-sanchez)
Revision history for this message
David Lapsley (dlapsley) wrote :

I've run into this one too. A side-effect is that the uploaded file stays in the tmp-upload directory and is "leaked" (i.e. never cleaned up). Christian, let me know if you need help on this one...

Revision history for this message
Cristian A Sanchez (cristian-a-sanchez) wrote : Re: [Bug 1125232] Re: Object Upload is validated after object upload

Hi,
I¹m almost done with this fix. It¹ll be great if you could review the code
after I commit it.
Thank you

Cristian

On 20/11/13 12:33, "David Lapsley" <email address hidden> wrote:

>I've run into this one too. A side-effect is that the uploaded file
>stays in the tmp-upload directory and is "leaked" (i.e. never cleaned
>up). Christian, let me know if you need help on this one...
>
>--
>You received this bug notification because you are a bug assignee.
>https://bugs.launchpad.net/bugs/1125232
>
>Title:
> Object Upload is validated after object upload
>
>Status in OpenStack Dashboard (Horizon):
> Confirmed
>
>Bug description:
> on the "Upload Object To Container" popup, if you select a file and do
> NOT enter an object name, you dont get a failure message until after
> the file has uploaded.
>
> There should be some client side valiadtion of the Object Name field
> on pressing the "Upload Object" button
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/horizon/+bug/1125232/+subscriptions

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/57499

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
David Lapsley (dlapsley) wrote :

Hi Christian: looking at it now.

Cheers, David.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in horizon:
assignee: Cristian A Sanchez (cristian-a-sanchez) → Maxime Vidori (maxime-vidori)
Revision history for this message
Cristian A Sanchez (cristian-a-sanchez) wrote :

Hi Maxime, I was working on this. Would have been nice to know that you were to submit a patch.

Revision history for this message
Maxime Vidori (maxime-vidori) wrote :

Hey! sorry for that, I did not see you yesterday, and nothing today so I have some time to loose... I do not mind if you want to take this patch on your own.

Sorry again, ping me on IRC if you want to get this, I think it will have some things to improve before the merge.

Revision history for this message
Cristian A Sanchez (cristian-a-sanchez) wrote :

That is fine. I can review your change and then help you on those things to improve

Changed in horizon:
assignee: Maxime Vidori (maxime-vidori) → Cristian A Sanchez (cristian-a-sanchez)
Changed in horizon:
assignee: Cristian A Sanchez (cristian-a-sanchez) → Maxime Vidori (maxime-vidori)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit b37b9d5fc43bb6757b8c1a28d521214944ac594e
Author: Maxime Vidori <email address hidden>
Date: Thu Dec 5 18:04:57 2013 +0100

    Object Upload validated on client side

        Perform a js validation of the Object Upload name. If the name is
    not entered, the submit button will appears disabled.

    Fixes bug #1125232
    Change-Id: Id33f3999e9267f5fc58eb55406fc5b763597839b
    Co-Authored-By: Cristian A Sanchez <email address hidden>

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-2 → 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.