Bug 955685
Summary: | Leading zeros when specifying idrange or uid/gid results in wrong values assigned without warning | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Javier Ramirez <javier.ramirez> |
Component: | ipa | Assignee: | Martin Kosek <mkosek> |
Status: | CLOSED DEFERRED | QA Contact: | Namita Soman <nsoman> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | javier.ramirez, jgalipea, mkosek |
Target Milestone: | beta | ||
Target Release: | 7.1 | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-01-21 15:33:27 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Javier Ramirez
2013-04-23 14:14:52 UTC
python treats numbers with leading zeroes as octal: $ bc bc 1.06.95 Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. ibase=8 0101000001 17039361 Interesting question. I personally tend to consider this to be rather a general "feature" of Python integer conversion and not a bug. I wonder what we should do about this. It is certainly unexpected behavior, as people shouldn't be required to know the language we implemented in. Then again leading 0's on an int would be ignored anyway, and few people add leading 0's to things. We could add a test to warn about this but it is quite a corner case, and the first time I remember this coming up. We could alternatively add this to the documentation. Upstream ticket: https://fedorahosted.org/freeipa/ticket/3610 Thank you taking your time and submitting this request for Red Hat Enterprise Linux. Unfortunately, this bug was not given a priority and was deferred both in the upstream project and in Red Hat Enterprise Linux. Given that we are unable to fulfill this request in following Red Hat Enterprise Linux releases, I am closing the Bugzilla as DEFERRED. To request that Red Hat re-considers the decision, please re-open the Bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you. Note that you can still track this request or even contribute patches in the referred upstream Trac ticket. |