Repository navigation
Fix: 1.x config translation dropped the proprietary-filter keys - #32
Merged
Merged
Conversation
translate_legacy copied only COOKIENAME, RACOL and DECCOL from [webserver] to the connection section, so a 1.x config's PROPFILTER, ACCESS_TBL, USERS_TBL, FILEID and ACCESSID were dropped and the proprietary filter was silently off. Every [webserver] key that is not a [WEB] or ADQL_* key now goes to the connection section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Problem
When
TAP.confuses the 1.x layout,compat.translate_legacy(from #30) rewrites it into the 3.x layout. It copied onlyCOOKIENAME,RACOLandDECCOLfrom[webserver]into the connection section.The 1.x layout also keeps the proprietary-filter keys in
[webserver]:PROPFILTER,ACCESS_TBL,USERS_TBL,FILEIDandACCESSID. 3.x reads those from the connection section, so the translation dropped them.configParamthen saw noPROPFILTER, and the proprietary filter was silently off. Anonymous queries would return proprietary rows.This affects any deployment that runs
developwith a 1.x config that sets a proprietary filter. NEA's config has none of these keys, so NEA was unaffected. A KOA test deployment does have them; it hasn't served queries yet, for an unrelated reason.Fix
Every
[webserver]key that isn't a[WEB]key,DBMSor anADQL_*key now goes to the connection section. Nothing in a 1.x config can be dropped, including keys added later.configParamignores keys it doesn't read, so the extra keys are harmless.Verification
test_legacy_proprietary_filter_keys_are_kept: a 1.x config with all five keys produces the sameconfigParamstate as its 3.x equivalent, andpropfilteris set.test_every_legacy_webserver_key_is_kept: an unknown[webserver]key reaches the connection section.developand correctly set with this fix.configParamvalues before and after.🤖 Generated with Claude Code