René's URL Explorer Experiment


Title: Fix TcfCaV1 (Canada) OptimizedRange encoding to use Fibonacci, with backwards-compatible decoding by chuff · Pull Request #105 · IABTechLab/iabgpp-java · GitHub

Open Graph Title: Fix TcfCaV1 (Canada) OptimizedRange encoding to use Fibonacci, with backwards-compatible decoding by chuff · Pull Request #105 · IABTechLab/iabgpp-java

X Title: Fix TcfCaV1 (Canada) OptimizedRange encoding to use Fibonacci, with backwards-compatible decoding by chuff · Pull Request #105 · IABTechLab/iabgpp-java

Description: Summary Per the GPP Consent String Specification, the Canada (TcfCaV1) section encodes several fields as OptimizedRange / N-ArrayOfRanges, both of which use Fibonacci coding. They were using fixed-integer encoders. This corrects the encoding and keeps existing strings decodable. Fixes: VendorExpressConsent, VendorImpliedConsent, DisclosedVendors (OptimizedRange) — EncodableOptimizedFixedRange → EncodableOptimizedFibonacciRange. PubRestrictions (N-ArrayOfRanges(6,2), whose ids are an OptimizedRange) — new EncodableArrayOfOptimizedFibonacciRanges that reuses the existing Fibonacci OptimizedRange for each record's ids. The fixed variant is left untouched for TCF EU, which legitimately keeps the legacy encoding. (Base64 was already correct in this library — all TcfCaV1 segments use the compressed encoder. The traditional-vs-compressed issue only affected iabgpp-es.) Backwards compatibility The TcfCaV1 core and disclosed-vendors segments decode by trying the spec-compliant (Fibonacci) interpretation first and, if it doesn't round-trip back to the input bitstring, falling back to the legacy (fixed-range) interpretation. Strings produced by the previous encoder still decode correctly. Empty / bitfield-form data encodes identically either way, so only populated range-form data changes on the wire. Note: this is backwards compatible on read (new code reads old strings). The encoder now emits Fibonacci strings, so consumers still running the previous code will not read the new range-form output — it is a deliberate wire-format correction for the affected fields. Test plan mvn test — full suite passes (368 tests) Per-field encode/decode + round-trip tests (sparse IDs exercise the Fibonacci range path) Backwards-compat decode tests using real pre-fix strings (vendors, PubRestrictions, plus a full real-world legacy string) 🤖 Generated with Claude Code

Open Graph Description: Summary Per the GPP Consent String Specification, the Canada (TcfCaV1) section encodes several fields as OptimizedRange / N-ArrayOfRanges, both of which use Fibonacci coding. They were using fixed-...

X Description: Summary Per the GPP Consent String Specification, the Canada (TcfCaV1) section encodes several fields as OptimizedRange / N-ArrayOfRanges, both of which use Fibonacci coding. They were using fixed-...

Opengraph URL: https://github.com/IABTechLab/iabgpp-java/pull/105

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e5d86ac7-27a6-73b1-4e26-68f4383e0730
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF28:B97E2:10F8BB0:17F36E9:6AF65CD4
html-safe-nonce3312abaaaf5feef7fb2c511559b692edb7e00f67fa1c86ca3b26817db43511bc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjI4OkI5N0UyOjEwRjhCQjA6MTdGMzZFOTo2QUY2NUNENCIsInZpc2l0b3JfaWQiOiI2NTI1NzY3OTUxMjE3NzQ1MTA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1d484cdae5db52850b7d8012a50322c2c110905d7074b2373627a871ecf65ba5
hovercard-subject-tagpull_request:3863694825
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IABTechLab/iabgpp-java/pull/105/files
twitter:imagehttps://avatars.githubusercontent.com/u/114670?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/114670?s=400&v=4
og:image:altSummary Per the GPP Consent String Specification, the Canada (TcfCaV1) section encodes several fields as OptimizedRange / N-ArrayOfRanges, both of which use Fibonacci coding. They were using fixed-...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefded9ab97d594702a6a4ebcef0ee4f94c91fb16da7c62cac91ee0125e9c2d58c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IABTechLab/iabgpp-java git https://github.com/IABTechLab/iabgpp-java.git
octolytics-dimension-user_id82903538
octolytics-dimension-user_loginIABTechLab
octolytics-dimension-repository_id538620496
octolytics-dimension-repository_nwoIABTechLab/iabgpp-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id538620496
octolytics-dimension-repository_network_root_nwoIABTechLab/iabgpp-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39cd7745159797c426e62ba2199c584d653d4b32
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IABTechLab/iabgpp-java/pull/105/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIABTechLab%2Fiabgpp-java%2Fpull%2F105%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIABTechLab%2Fiabgpp-java%2Fpull%2F105%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IABTechLab%2Fiabgpp-java
Reloadhttps://github.com/IABTechLab/iabgpp-java/pull/105/files
Reloadhttps://github.com/IABTechLab/iabgpp-java/pull/105/files
Reloadhttps://github.com/IABTechLab/iabgpp-java/pull/105/files
IABTechLabhttps://github.com/IABTechLab
iabgpp-javahttps://github.com/IABTechLab/iabgpp-java
Codehttps://github.com/IABTechLab/iabgpp-java
Issues13 (13)https://github.com/IABTechLab/iabgpp-java/issues
Pull requests4 (4)https://github.com/IABTechLab/iabgpp-java/pulls
Actionshttps://github.com/IABTechLab/iabgpp-java/actions
Projectshttps://github.com/IABTechLab/iabgpp-java/projects
Security and qualityhttps://github.com/IABTechLab/iabgpp-java/security
Insightshttps://github.com/IABTechLab/iabgpp-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FIABTechLab%2Fiabgpp-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIABTechLab%2Fiabgpp-java%2Fissues%2Fnew%2Fchoose
chuffhttps://github.com/chuff
IABTechLab:masterhttps://github.com/IABTechLab/iabgpp-java/tree/master
chuff:fix/canada-encodinghttps://github.com/chuff/iabgpp-java/tree/fix/canada-encoding
Conversation 1 https://github.com/IABTechLab/iabgpp-java/pull/105
Commits 4 https://github.com/IABTechLab/iabgpp-java/pull/105/commits
Checks 2 https://github.com/IABTechLab/iabgpp-java/pull/105/checks
Files changed https://github.com/IABTechLab/iabgpp-java/pull/105/files
Please reload this pagehttps://github.com/IABTechLab/iabgpp-java/pull/105/files
Fix TcfCaV1 (Canada) OptimizedRange encoding to use Fibonacci, with backwards-compatible decoding https://github.com/IABTechLab/iabgpp-java/pull/105/files#top
Show all changes 4 commits https://github.com/IABTechLab/iabgpp-java/pull/105/files
f8c8847 fix: use Fibonacci OptimizedRange for TcfCaV1 vendor fields chuff Jun 9, 2026 https://github.com/IABTechLab/iabgpp-java/pull/105/commits/f8c88476d92bae7bb5ff049aebbfaa9f14f29861
46abab2 fix: encode TcfCaV1 PubRestrictions ids as Fibonacci OptimizedRange chuff Jun 9, 2026 https://github.com/IABTechLab/iabgpp-java/pull/105/commits/46abab2b5dfe297c600d83eec1b5a8b7d29f81ba
d5d473d feat: backwards-compatible decoding of legacy TcfCaV1 strings chuff Jun 9, 2026 https://github.com/IABTechLab/iabgpp-java/pull/105/commits/d5d473d0323906616389f4a062b5e97936353ad3
f9f559c test: decode a real legacy TcfCaV1 string and re-encode to spec-compl… chuff Jun 9, 2026 https://github.com/IABTechLab/iabgpp-java/pull/105/commits/f9f559ce798954f937a2a6b8a72360dc5fe55c80
Clear filters https://github.com/IABTechLab/iabgpp-java/pull/105/files
Please reload this pagehttps://github.com/IABTechLab/iabgpp-java/pull/105/files
Please reload this pagehttps://github.com/IABTechLab/iabgpp-java/pull/105/files
EncodableArrayOfOptimizedFibonacciRanges.java https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-cdb02ec1ff994a05ac48c9fbb42e57c3edb7ee669278b598bd4f95675392655d
TcfCaV1CoreSegment.java https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
TcfCaV1DisclosedVendorsSegment.java https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-aaae3ddeda95d87bcde8dd6d94078d08e9b86d6354d5d7c7556febe9248e0b4f
GppModelTest.java https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
TcfCaV1Test.java https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-e7691a6dcfb04136ff8798b242fb4c3db5bd9fe2241a11dd3c18847375a08890
.../src/main/java/com/iab/gpp/encoder/datatype/EncodableArrayOfOptimizedFibonacciRanges.javahttps://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-cdb02ec1ff994a05ac48c9fbb42e57c3edb7ee669278b598bd4f95675392655d
View file https://github.com/IABTechLab/iabgpp-java/blob/f9f559ce798954f937a2a6b8a72360dc5fe55c80/iabgpp-encoder/src/main/java/com/iab/gpp/encoder/datatype/EncodableArrayOfOptimizedFibonacciRanges.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IABTechLab/iabgpp-java/pull/105/{{ revealButtonHref }}
iabgpp-encoder/src/main/java/com/iab/gpp/encoder/segment/TcfCaV1CoreSegment.javahttps://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
View file https://github.com/IABTechLab/iabgpp-java/blob/f9f559ce798954f937a2a6b8a72360dc5fe55c80/iabgpp-encoder/src/main/java/com/iab/gpp/encoder/segment/TcfCaV1CoreSegment.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IABTechLab/iabgpp-java/pull/105/{{ revealButtonHref }}
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-70c2ec4eda4292b887bd62c79fb526d7474dfcf8de2ea22fe476de8aa9d32ba7
iabgpp-encoder/src/main/java/com/iab/gpp/encoder/segment/TcfCaV1DisclosedVendorsSegment.javahttps://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-aaae3ddeda95d87bcde8dd6d94078d08e9b86d6354d5d7c7556febe9248e0b4f
View file https://github.com/IABTechLab/iabgpp-java/blob/f9f559ce798954f937a2a6b8a72360dc5fe55c80/iabgpp-encoder/src/main/java/com/iab/gpp/encoder/segment/TcfCaV1DisclosedVendorsSegment.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IABTechLab/iabgpp-java/pull/105/{{ revealButtonHref }}
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-aaae3ddeda95d87bcde8dd6d94078d08e9b86d6354d5d7c7556febe9248e0b4f
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-aaae3ddeda95d87bcde8dd6d94078d08e9b86d6354d5d7c7556febe9248e0b4f
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-aaae3ddeda95d87bcde8dd6d94078d08e9b86d6354d5d7c7556febe9248e0b4f
iabgpp-encoder/src/test/java/com/iab/gpp/encoder/GppModelTest.javahttps://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
View file https://github.com/IABTechLab/iabgpp-java/blob/f9f559ce798954f937a2a6b8a72360dc5fe55c80/iabgpp-encoder/src/test/java/com/iab/gpp/encoder/GppModelTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IABTechLab/iabgpp-java/pull/105/{{ revealButtonHref }}
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
https://github.com/IABTechLab/iabgpp-java/pull/105/files#diff-ae8c0971a91ea4a256ed67bb915ecc588494cd9c060ab78989aa8aeb458ac93b
Please reload this pagehttps://github.com/IABTechLab/iabgpp-java/pull/105/files
Please reload this pagehttps://github.com/IABTechLab/iabgpp-java/pull/105/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.