[augeas-devel] [Augeas] #361: httpd.lns - augeas set value with whitespace failed
Augeas
trac at fedorahosted.org
Sun Aug 25 17:48:54 UTC 2013
#361: httpd.lns - augeas set value with whitespace failed
------------------------+---------------------
Reporter: kwreczycki | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: 0.10.0
Component: Augeas | Version: 1.0.0
Keywords: | Blocked By:
Blocking: |
------------------------+---------------------
The problem appears when You want set value with whitespace, for example:
{{{
...
changes => "set *[self::directive='FastCgiExternalServer']/arg '/usr/lib
/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header
Authorization'",
...
}}}
after saving, I've got this error msg:
{{{
/augeas/files/etc/apache2/mods-available/fastcgi.conf/error = "put_failed"
/augeas/files/etc/apache2/mods-available/fastcgi.conf/error/path =
"/files/etc/apache2/mods-available/fastcgi.conf/IfModule/directive"
/augeas/files/etc/apache2/mods-available/fastcgi.conf/error/lens =
"/usr/share/augeas/lenses/dist/httpd.aug:76.18-77.49:"
/augeas/files/etc/apache2/mods-available/fastcgi.conf/error/message =
"Failed to match \n ({ /arg/ = /([^\001-\004\t\n
\"']|\\\\\"|\\\\')+|\"([^\001-\004\n\"\\]|\\\\[^\001-\004\n])\"|'([^\001-\004\n'\\]|\\\\[^\001-\004\n])'/
}({ /arg/ = /([^\001-\004\t\n
\"']|\\\\\"|\\\\')+|\"([^\001-\004\n\"\\]|\\\\[^\001-\004\n])\"|'([^\001-\004\n'\\]|\\\\[^\001-\004\n])'/
})*)?\n with tree\n { \"arg\" = \"/usr/lib/cgi-bin/php5-fcgi -socket
/var/run/php5-fpm.sock -pass-header Authorization\" }"
}}}
Expected result for this setting, should be:
{{{
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket
/var/run/php5-fpm.sock -pass-header Authorization
}}}
without any double quotes.
For more details see disucssion on stackoverflow when I reported this
problem [http://stackoverflow.com/questions/18428930/augeas-set-value-
with-whitespace-failed].
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/361>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list