You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Augeas 1.4 is still broken (doesn't like mod_rewrite and regular expressions) #1202
I already know about #981 and I was able to patch my own system to avoid that issue; However, it seems that even the new httpd lens fails when a config file includes regular expressions.
I have 11 config files in my folder, and augeas reports “syntax errors” for exactly those files which make use of mod_rewrite. mod_rewrite is an apache module which uses regular expressions for configuration.
At this point, I would suggest that we patch the lens ourselves as we wouldn't want to wait for a new version of augeas.
@chriscroome Indeed. It seems that Augeas in general is breaking when special chars are included in the directives. E.g. using logic operators such as ">" and "<" in the tags (if I'm correct) causes Augeas to break. Check replies to #1264 for extra info.
I did some testing on this... I was able to reproduce the mod_rewrite problem on some systems (but not all... it may depend on minor versions of Augeas 1.2...) by adding the following to an Apache config file:
For the record, I could repro on ubuntu 14.04 with libaugeas0 at 1.2.0-0ubuntu1.1; I could not repro on debian sid with libaugeas0 at 1.2.0-0.2. Quite mysterious.
Activity
jdkasten commentedon Oct 29, 2015
Thanks for the report @erebus2. We should report this upstream https://github.com/hercules-team/augeas
I believe that 1.2 handles regular expressions (version I am using) :(
erebus2 commentedon Oct 29, 2015
@jdkasten : Huh? That would mean that they fixed #981 and broke something else at the same time...
Maybe we should consider not to report this upstream. They might add yet another issue when this one is fixed.
WARNING: The preceding comment contains irony. It MAY provide amusement but SHOULD NOT be taken seriously.
jdkasten commentedon Oct 29, 2015
Can you post the file that it breaks on? We have tested and added our own rewrite rules, so it can't be universal.
Clarification: Rewrite rules which contain regexp
pde commentedon Oct 30, 2015
If possible please send us all of the breaking conf files, so that we can make test cases out of them :)
chriscroome commentedon Nov 3, 2015
There appears to be another issue with the use of less than in
<IfVersion>in default Debian Apache config files, see:The bug for regular expressions is here hercules-team/augeas#307
owenhayman commentedon Nov 3, 2015
@chriscroome Indeed. It seems that Augeas in general is breaking when special chars are included in the directives. E.g. using logic operators such as ">" and "<" in the tags (if I'm correct) causes Augeas to break. Check replies to #1264 for extra info.
pde commentedon Nov 6, 2015
I did some testing on this... I was able to reproduce the
mod_rewriteproblem on some systems (but not all... it may depend on minor versions of Augeas 1.2...) by adding the following to an Apache config file:However, once #1291 was merged the
mod_rewriteproblem seems to have been solved.pde commentedon Nov 6, 2015
For the record, I could repro on ubuntu 14.04 with libaugeas0 at 1.2.0-0ubuntu1.1; I could not repro on debian sid with libaugeas0 at 1.2.0-0.2. Quite mysterious.
pde commentedon Nov 6, 2015
Regexps in apache
Ifconditionals also work fine (now):So closing this bug!