Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[regexp] CRITICAL Failed to parse regex: \?.*\=restapi.*+ (multiple repeat) #57

Open
patsevanton opened this issue Jun 1, 2017 · 0 comments
Labels

Comments

@patsevanton
Copy link

server {
    listen 80 default_server;
    server_name localhost;
    location ~* \?.*\=restapi.*+ {
    }
}

gixy default
[regexp] CRITICAL Failed to parse regex: ?.=restapi.+ (multiple repeat)
Traceback (most recent call last):
File "/home/user/.local/bin/gixy", line 11, in
sys.exit(main())
File "/home/user/.local/lib/python2.7/site-packages/gixy/cli/main.py", line 166, in main
yoda.audit(path, fdata, is_stdin=False)
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/manager.py", line 27, in audit
self._audit_recursive(self.root.children)
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/manager.py", line 53, in _audit_recursive
self._audit_recursive(directive.children)
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/manager.py", line 48, in _audit_recursive
self._update_variables(directive)
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/manager.py", line 63, in _update_variables
for var in directive.variables:
File "/home/user/.local/lib/python2.7/site-packages/cached_property.py", line 26, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/home/user/.local/lib/python2.7/site-packages/gixy/directives/block.py", line 119, in variables
for name, group in regexp.groups.items():
File "/home/user/.local/lib/python2.7/site-packages/cached_property.py", line 26, in get
value = obj.dict[self.func.name] = self.func(obj)
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/regexp.py", line 1004, in groups
for name, parsed in extract_groups(self.parsed).items():
File "/home/user/.local/lib/python2.7/site-packages/gixy/core/regexp.py", line 1029, in parsed
raise e
gixy.core.sre_parse.sre_constants.error: multiple repeat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants