Bug 557163
Summary: | File parameter fails if prompted for | |||
---|---|---|---|---|
Product: | [Retired] freeIPA | Reporter: | John Dennis <jdennis> | |
Component: | ipa-admintools | Assignee: | Dmitri Pal <dpal> | |
Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 2.0 | CC: | benl, dpal, jgalipea, mkosek, rcritten | |
Target Milestone: | v2 release | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | freeipa-2.1.3-5.fc16 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 737994 (view as bug list) | Environment: | ||
Last Closed: | 2012-03-28 09:30:21 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, 737994 |
Description
John Dennis
2010-01-20 15:58:07 UTC
Maybe Jason can chime in. I just don't see anyway to support the concept of File parameters using the existing parameter mechanism without a lot of special case hacks spread through the code. The fundamental problems are that the Parameter classes are read only descriptions of what the parameter should look like but don't actually contain the parameter value. The parameter value is in the kw dict of the command and there is no way for the parameter mechanism to know if what's in the kw dict has been operated on (e.g. the file name replaced with the file contents). If that were true then the normalize and/or validate routine could be used to transform the file name into the file contents, but we can't do that because we have to set a flag indicating if the file contents have been read and there is no place to set such a flag. Upstream ticket: https://fedorahosted.org/freeipa/ticket/1777 |