Bug 1209885
| Summary: | Properties lens doesn't like multi-line where first line has no value | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Luca Gioppo <gioppoluca> | |
| Component: | augeas | Assignee: | Dominic Cleal <dcleal> | |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.6 | CC: | gioppoluca, huzhan, leiwang, wshi | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | augeas-1.0.0-10.el6 | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: .properties (Java-style) files containing a multi-line value that begins with a blank line
Consequence: Augeas was unable to parse these files
Fix: Augeas' lens (parser) has been fixed to accept an empty starting line
Result: Augeas can now parse these files
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1209923 (view as bug list) | Environment: | ||
| Last Closed: | 2015-07-22 05:41:20 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1209923 | |||
|
Description
Luca Gioppo
2015-04-08 12:18:58 UTC
Fixed in 491df810 Problem persists in the latest 6.7.0 errata build: augeas-1.0.0-9.el6. Also check the fix 491df810, and it works well. Verified with augeas-1.0.0-10.el6 Steps to verify: # augtool augtool> set /augeas/load/Properties/lens Properties.lns augtool> set /augeas/load/Properties/incl[last()+1] /tmp/test.properties augtool> load augtool> print /files/tmp/test.properties/ /files/tmp/test.properties /files/tmp/test.properties/tomcat.util.scan.DefaultJarScanner.jarsToSkip = " < multi > " Works as expected. So fixed. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1256.html |