René's URL Explorer Experiment


Title: Bug: getting "DecodingException: Unable to decode KnownChildSensitiveDataConsents" · Issue #81 · IABTechLab/iabgpp-java · GitHub

Open Graph Title: Bug: getting "DecodingException: Unable to decode KnownChildSensitiveDataConsents" · Issue #81 · IABTechLab/iabgpp-java

X Title: Bug: getting "DecodingException: Unable to decode KnownChildSensitiveDataConsents" · Issue #81 · IABTechLab/iabgpp-java

Description: I use this library to detect if data-sharing is enabled, by using this: implementation("com.iabgpp:iabgpp-encoder:3.2.3") /** @return returns null if not initialized yet, or initialized and it's ok to share data. * When returned true, it...

Open Graph Description: I use this library to detect if data-sharing is enabled, by using this: implementation("com.iabgpp:iabgpp-encoder:3.2.3") /** @return returns null if not initialized yet, or initialized and it's ok...

X Description: I use this library to detect if data-sharing is enabled, by using this: implementation("com.iabgpp:iabgpp-encoder:3.2.3") /** @return returns null if not initialized yet, or initialized a...

Opengraph URL: https://github.com/IABTechLab/iabgpp-java/issues/81

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: getting \"DecodingException: Unable to decode KnownChildSensitiveDataConsents\"","articleBody":"I use this library to detect if data-sharing is enabled, by using this:\n\nimplementation(\"com.iabgpp:iabgpp-encoder:3.2.3\")\n\n```\n    /** @return returns null if not initialized yet, or initialized and it's ok to share data.\n     * When returned true, it means all kinds of data sharing is allowed:SALE_OPT_OUT, SHARING_OPT_OUT, TARGETED_ADVERTISING_OPT_OUT.\n     * Otherwise returns false*/\n    fun isDataShareAllowed(context: Context): Boolean? {\n        val defaultSharedPreferences = PreferenceUtil.getDefaultSharedPreferences(context)\n        val gppString = defaultSharedPreferences.getString(\"IABGPP_HDR_GppString\", null) ?: return null\n        when(gppString){\n            \"DBABL~BVQqAAAAAg\" -> return true\n            \"DBABL~BVQVAAAAAg\" -> return false\n        }\n        CrashlyticsUtil.logException(\"AdConsentUtil isDataShareAllowed unknown gppString detected:$gppString, so using fallback\")\n        val model = GppModel(gppString)\n        val usNatSection1 = model.getSection(UsNat.ID)\n        val fieldsToCheck = arrayOf(UsNatField.SALE_OPT_OUT, UsNatField.SHARING_OPT_OUT, UsNatField.TARGETED_ADVERTISING_OPT_OUT)\n        for (fieldName in fieldsToCheck) {\n            if (usNatSection1.hasField(fieldName)) {\n                val fieldValue = usNatSection1.getFieldValue(fieldName) ?: continue\n                if (fieldValue == 2)\n                    continue\n                return false\n            }\n        }\n        return true\n    }\n```\n\nRecently I got a crash of this sort, reported via Crashlytics, on the line of \"getFieldValue\":\n\n```\n...\n          Caused by com.iab.gpp.encoder.error.DecodingException: Unable to decode KnownChildSensitiveDataConsents\n       at com.iab.gpp.encoder.bitstring.BitStringEncoder.decode(BitStringEncoder.java:49)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:107)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:16)\n       at com.iab.gpp.encoder.segment.AbstractLazilyEncodableSegment.getFieldValue(AbstractLazilyEncodableSegment.java:31)\n       at com.iab.gpp.encoder.section.AbstractLazilyEncodableSection.getFieldValue(AbstractLazilyEncodableSection.java:51)\n```\n\n```\n          Caused by com.iab.gpp.encoder.datatype.SubstringException: java.lang.StringIndexOutOfBoundsException: begin 56, end 62, length 60\n       at com.iab.gpp.encoder.datatype.EncodableFixedIntegerList.substring(EncodableFixedIntegerList.java:54)\n       at com.iab.gpp.encoder.bitstring.BitStringEncoder.decode(BitStringEncoder.java:44)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:107)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:16)\n       at com.iab.gpp.encoder.segment.AbstractLazilyEncodableSegment.getFieldValue(AbstractLazilyEncodableSegment.java:31)\n       at com.iab.gpp.encoder.section.AbstractLazilyEncodableSection.getFieldValue(AbstractLazilyEncodableSection.java:51)\n```\n\n```\n          Caused by java.lang.StringIndexOutOfBoundsException: begin 56, end 62, length 60\n       at java.lang.String.checkBoundsBeginEnd(String.java:4519)\n       at java.lang.String.substring(String.java:2537)\n       at com.iab.gpp.encoder.datatype.EncodableFixedIntegerList.substring(EncodableFixedIntegerList.java:52)\n       at com.iab.gpp.encoder.bitstring.BitStringEncoder.decode(BitStringEncoder.java:44)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:107)\n       at com.iab.gpp.encoder.segment.UsNatCoreSegment.decodeSegment(UsNatCoreSegment.java:16)\n       at com.iab.gpp.encoder.segment.AbstractLazilyEncodableSegment.getFieldValue(AbstractLazilyEncodableSegment.java:31)\n       at com.iab.gpp.encoder.section.AbstractLazilyEncodableSection.getFieldValue(AbstractLazilyEncodableSection.java:51)\n```\n\nWhy does it occur?\n\n","author":{"url":"https://github.com/AndroidDeveloperLB","@type":"Person","name":"AndroidDeveloperLB"},"datePublished":"2025-06-25T08:31:32Z","url":"https://github.com/IABTechLab/iabgpp-java/issues/81"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:bea99291-4dab-14df-4168-4c312d17181c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB05C:1B54A4:1C2072:252EA4:6AF64DC8
html-safe-noncee4ac4efad4c6631b9e6e488de6b1db473ecc2249a1e1d1a85402dbe4909c0768
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDVDOjFCNTRBNDoxQzIwNzI6MjUyRUE0OjZBRjY0REM4IiwidmlzaXRvcl9pZCI6IjY5ODk3NDc2NzE4NjIyMzQ1NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdc7d492f7b2e9863e9b0adfe99d778b88018701a1e00c72cb05ca75e54c066c3
hovercard-subject-tagissue:3174730880
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IABTechLab/iabgpp-java/81/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cb5592c1ac64480e76a036c44f0f355391b527e57d522c006f86c8ce93ce26b1/IABTechLab/iabgpp-java/issues/81
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cb5592c1ac64480e76a036c44f0f355391b527e57d522c006f86c8ce93ce26b1/IABTechLab/iabgpp-java/issues/81
og:image:altI use this library to detect if data-sharing is enabled, by using this: implementation("com.iabgpp:iabgpp-encoder:3.2.3") /** @return returns null if not initialized yet, or initialized and it's ok...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAndroidDeveloperLB
hostnamegithub.com
expected-hostnamegithub.com
Nonef08f841c97bca81898b33b24705801fbf36c27aa3a76d422631761ce578f7b63
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb946aa396e8129468b84468b6046f18d957f446c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IABTechLab/iabgpp-java/issues/81#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIABTechLab%2Fiabgpp-java%2Fissues%2F81
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%2Fissues%2F81
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IABTechLab%2Fiabgpp-java
Reloadhttps://github.com/IABTechLab/iabgpp-java/issues/81
Reloadhttps://github.com/IABTechLab/iabgpp-java/issues/81
Reloadhttps://github.com/IABTechLab/iabgpp-java/issues/81
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
https://github.com/IABTechLab/iabgpp-java
New issuehttps://github.com/login?return_to=https://github.com/IABTechLab/iabgpp-java/issues/81
New issuehttps://github.com/login?return_to=https://github.com/IABTechLab/iabgpp-java/issues/81
Bug: getting "DecodingException: Unable to decode KnownChildSensitiveDataConsents"https://github.com/IABTechLab/iabgpp-java/issues/81#top
investigateTo validate if still an issuehttps://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22investigate%22
reviewedFor library maintainers only. Indicates that this issue was reviewed.https://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22reviewed%22
https://github.com/AndroidDeveloperLB
AndroidDeveloperLBhttps://github.com/AndroidDeveloperLB
on Jun 25, 2025https://github.com/IABTechLab/iabgpp-java/issues/81#issue-3174730880
lamrowenahttps://github.com/lamrowena
reviewedFor library maintainers only. Indicates that this issue was reviewed.https://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22reviewed%22
on Dec 17, 2025https://github.com/IABTechLab/iabgpp-java/issues/81#event-21625204733
https://github.com/lamrowena
lamrowenahttps://github.com/lamrowena
on Dec 17, 2025https://github.com/IABTechLab/iabgpp-java/issues/81#issuecomment-3666805664
@chuffhttps://github.com/chuff
lamrowenahttps://github.com/lamrowena
investigateTo validate if still an issuehttps://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22investigate%22
on Dec 17, 2025https://github.com/IABTechLab/iabgpp-java/issues/81#event-21625223714
Sign up for freehttps://github.com/signup?return_to=https://github.com/IABTechLab/iabgpp-java/issues/81
Sign in to commenthttps://github.com/login?return_to=https://github.com/IABTechLab/iabgpp-java/issues/81
investigateTo validate if still an issuehttps://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22investigate%22
reviewedFor library maintainers only. Indicates that this issue was reviewed.https://github.com/IABTechLab/iabgpp-java/issues?q=state%3Aopen%20label%3A%22reviewed%22
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.