Bug 484050

Summary: can't delete group from web ui
Product: [Retired] freeIPA Reporter: Pavel Volkovitskiy <olfway>
Component: WebUIAssignee: Rob Crittenden <rcritten>
Status: CLOSED UPSTREAM QA Contact: Chandrasekar Kannan <ckannan>
Severity: high Docs Contact:
Priority: low    
Version: 1.2CC: benl, dpal, jgalipea
Target Milestone: v2 release   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-28 09:31:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 431020    
Attachments:
Description Flags
make dn a hidden field none

Description Pavel Volkovitskiy 2009-02-04 14:42:50 UTC
i'm using freeipa from 1.2 branch and can't remove group from WebUI

"Group deletion failed: Invalid parameter(s)"

i tried to debug that and found that UI sends "" instead of group dn

in page source:
  <form action="/ipa/ui/group/delete" style="display:none" id="deleteform" method="post">
    <input type="hidden" name="dn">
  </form>

ie no value in field "dn"

in groupeditform.kid:
  <form style="display:none" id='deleteform'
    method="post" action="${tg.url('/group/delete')}">
    <input type="hidden" name="dn" value="${value.get('dn')}" />
  </form>

Comment 3 Rob Crittenden 2009-02-09 20:48:06 UTC
Created attachment 331367 [details]
make dn a hidden field

In order to fix some other problems we set filter_extra_fields and allow_extra_fields to True in the group validator. This means that any field not used on a form is silently dropped.

Unfortunately dn is one such field. There is no direct input of this field but it is needed when doing a delete. So I added it as a hidden field.

Comment 4 Rob Crittenden 2009-02-10 14:23:16 UTC
ipa-1-2: 50bfc94cd7d2451dc1420ac672355b9a4c9d7688

Comment 5 Fedora Update System 2009-09-10 21:19:53 UTC
ipa-1.2.2-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/ipa-1.2.2-1.fc10

Comment 6 Fedora Update System 2009-09-10 21:20:16 UTC
ipa-1.2.2-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/ipa-1.2.2-1.fc11

Comment 7 Fedora Update System 2009-09-19 00:05:41 UTC
ipa-1.2.2-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2009-09-19 00:10:24 UTC
ipa-1.2.2-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.