Bug 1209923 - Properties lens doesn't like multi-line where first line has no value
Summary: Properties lens doesn't like multi-line where first line has no value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: augeas
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Dominic Cleal
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1209885
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-08 12:57 UTC by Dominic Cleal
Modified: 2015-11-19 10:19 UTC (History)
6 users (show)

Fixed In Version: augeas-1.4.0-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of: 1209885
Environment:
Last Closed: 2015-11-19 10:19:08 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2015:2153 0 normal SHIPPED_LIVE augeas bug fix and enhancement update 2015-11-19 09:54:36 UTC

Description Dominic Cleal 2015-04-08 12:57:47 UTC
+++ This bug was initially created as a clone of Bug #1209885 +++

as described here:
https://github.com/hercules-team/augeas/issues/110#issuecomment-41021392

Problem persist in 1.0.0-7.el6 but the fix is in augeas 1.2.0.

A port of the fix is needed for allowing tools like puppet and others to manage tomcat properties files that has this behaviour.
Thanks
Luca

--- Additional comment from Dominic Cleal on 2015-04-08 13:56:14 BST ---

Fixed in 491df810

Comment 3 Xianghua Chen 2015-09-16 07:33:15 UTC
Verified with the package:
augeas-1.4.0-2.el7.x86_64

Verify steps:
1. create file /tmp/test.properties using following content:
tomcat.util.scan.DefaultJarScanner.jarsToSkip= \
bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\
annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,\
catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar

2. 
augtool> set /augeas/load/Properties/lens Properties.lns
augtool> set /augeas/load/Properties/incl[last()+1] /tmp/test.properties
augtool> load 
augtool> print /augeas//error
augtool> print /files/tmp/test.properties/
/files/tmp/test.properties
/files/tmp/test.properties/tomcat.util.scan.DefaultJarScanner.jarsToSkip = " < multi > "

Works as expected. So verified.

Comment 4 errata-xmlrpc 2015-11-19 10:19:08 UTC
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/RHEA-2015-2153.html


Note You need to log in before you can comment on or make changes to this bug.