Skip to content

Fix LMDB compilation #2011

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

Closed
wants to merge 3 commits into from
Closed

Conversation

WGH-
Copy link
Contributor

@WGH- WGH- commented Jan 27, 2019

See #2008

When I re-enabled LMDB testing in Travis, I also discovered a regression test that fails when LMDB is enabled, and fixed it as well. The fix is ugly, but so is the LMDB backend code that stores data in hardcoded location relative to the current working dir ¯\_(ツ)_/¯.

WGH- added 3 commits January 27, 2019 17:29
LMBD is not built by default since 6143eb9,
so add explicit --with-lmdb configuration.

Missing --with-lmdb build allowed a bug in PR owasp-modsecurity#2003 to pass
through, causing issue owasp-modsecurity#2008.
When LMDB is enabled, ModSecurity stores its persistent variables in
"./modsec-shared-collections" file. Since this file wasn't cleared between
tests, tests behaved differently on "in-memory per-process" and LMDB backend.

This test never worked in LMDB configuration. It hasn't been discovered
until now because Travis CI didn't test LMDB configuration when test was
introduced.
@zimmerle zimmerle self-requested a review January 28, 2019 19:21
@zimmerle zimmerle self-assigned this Jan 28, 2019
@zimmerle
Copy link
Contributor

Thank you for your contribution. We don't encourage users to use LMDB. It is there for advanced users.

@zimmerle zimmerle closed this Jan 28, 2019
zimmerle added a commit that referenced this pull request Jan 28, 2019
@WGH- WGH- deleted the regex-lmdb-fix branch January 30, 2019 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants