Repository navigation
Port the 3.0.2 proprietary-access fixes to develop - #35
Merged
Merged
Conversation
The 3.0.2 hotfix (fcab318) was made on main from v3.0.1 and never reached develop, so 3.1 builds lacked it. Bring it over: - group the whole user WHERE predicate before the proprietary constraint is applied, and reject query shapes the filter cannot rewrite safely (aliases, joins, subqueries, comments), checking every referenced table - bind cookie user IDs for Oracle and PostgreSQL - stop logging passwords, cookies and request values; only the server environment (TAP_DEBUG=1) can turn on request debugging - add tests/test_propfilter_security.py Conflicts kept develop's form handling (DELETE requests) and logging style. Also drops a password debug line that compat_vositables.py had gained. The tests now give Tap a FieldStorage-like form, since develop checks form.list. Release metadata, HOTFIX-3.0.2.md and the 3.0.1-only conftest stay on main. ruff passes; 238 passed, 2 skipped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The 3.0.2 hotfix (fcab318) was made on
mainfrom v3.0.1 and never merged intodevelop, so 3.1 builds don't have it. This ports it over.What comes across from fcab318
WHEREpredicate is grouped before the proprietary constraint is applied. Query shapes the filter can't rewrite safely (aliases, joins, subqueries, SQL comments) are rejected with HTTP 400, and every referenced table is checked before the protected query path is chosen.TAP_DEBUG=1) can turn on request debugging.tests/test_propfilter_security.py.Differences from fcab318
develop's form handling (DELETE requests) and logging style.compat_vositables.pyhad gained since 3.0.1.Tapa FieldStorage-like form, becausedevelopreadsform.list.main: the 3.0.2 release metadata,HOTFIX-3.0.2.mdand the 3.0.1-onlyconftest.py.Testing
ruff check .passes.pytest tests/: 238 passed, 2 skipped (same skips asdevelop).🤖 Generated with Claude Code