René's URL Explorer Experiment


Title: 0.9.0 SPF files: by_guid misses charset-legal but invalid-base64 GlobalIds that 0.8.5 matched verbatim · Issue #9830 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: 0.9.0 SPF files: by_guid misses charset-legal but invalid-base64 GlobalIds that 0.8.5 matched verbatim · Issue #9830 · IfcOpenShell/IfcOpenShell

X Title: 0.9.0 SPF files: by_guid misses charset-legal but invalid-base64 GlobalIds that 0.8.5 matched verbatim · Issue #9830 · IfcOpenShell/IfcOpenShell

Description: Version: ifcopenshell 0.9.0 (PyPI wheel, Linux x86_64, Python 3.12) — behavior regression vs 0.8.5 Summary On a regular (in-memory SPF) file, file.by_guid on 0.9.0 raises RuntimeError: Instance with GlobalId '...' not found for GlobalId ...

Open Graph Description: Version: ifcopenshell 0.9.0 (PyPI wheel, Linux x86_64, Python 3.12) — behavior regression vs 0.8.5 Summary On a regular (in-memory SPF) file, file.by_guid on 0.9.0 raises RuntimeError: Instance wit...

X Description: Version: ifcopenshell 0.9.0 (PyPI wheel, Linux x86_64, Python 3.12) — behavior regression vs 0.8.5 Summary On a regular (in-memory SPF) file, file.by_guid on 0.9.0 raises RuntimeError: Instance wit...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9830

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.9.0 SPF files: by_guid misses charset-legal but invalid-base64 GlobalIds that 0.8.5 matched verbatim","articleBody":"**Version:** ifcopenshell 0.9.0 (PyPI wheel, Linux x86_64, Python 3.12) — behavior regression vs 0.8.5\n\n## Summary\n\nOn a regular (in-memory SPF) file, `file.by_guid` on 0.9.0 raises `RuntimeError: Instance with GlobalId '...' not found` for GlobalId attribute values that are 22-character strings over the IfcGloballyUniqueId alphabet but are **not valid base64 encodings** — even though the entity is present in the file with exactly that GlobalId. 0.8.5's `by_guid` matched such strings verbatim, so models or test fixtures carrying pseudo-GUIDs resolve on 0.8.5 and stop resolving on 0.9.0.\n\n## Reproduction\n\n```python\nimport ifcopenshell, ifcopenshell.guid\n\nSYN = \"0SYNTH000000156\"  # 22 chars, all in the IfcGloballyUniqueId alphabet; invalid base64 (17 data chars)\n\nf = ifcopenshell.file(schema=\"IFC4\")\nf.create_entity(\"IfcWall\", GlobalId=SYN, Name=\"synthetic\")\nf.create_entity(\"IfcWall\", GlobalId=ifcopenshell.guid.new(), Name=\"canonical\")\nf.write(\"m.ifc\")\n\nm = ifcopenshell.open(\"m.ifc\")\nprint([(w.id(), w.GlobalId) for w in m.by_type(\"IfcWall\")])  # [(1, '0SYNTH000000156'), (2, ...)]\nprint(m.by_guid(SYN))          # 0.8.5: resolves #1  —  0.9.0: RuntimeError: ... not found\nprint(ifcopenshell.guid.expand(SYN))  # both: Error: Invalid base64-encoded string: number of data\n                                      # characters (17) cannot be 1 more than a multiple of 4\n```\n\n## Observed (A/B on the wheels)\n\n- **0.8.5**: `by_guid('0SYNTH000000156')` → HIT (`#1`); canonical `guid.new()` values → HIT\n- **0.9.0**: `by_guid('0SYNTH000000156')` → MISS (`RuntimeError`); canonical values → HIT; `by_type` shows the entity present with that exact attribute value\n\n## Expected behavior\n\n`by_guid` resolves any string the file actually contains as a GlobalId attribute (raw-string index lookup), as 0.8.5 did — or, if canonicalization is intentional, the miss for charset-legal values is documented on the `by_guid` API.\n\n## Notes\n\n- Found during a 0.8.5 → 0.9.0 production upgrade of a model-checking pipeline (~3.4k-test corpus). The values occur in practice: deterministic human-readable fixture ids, and the same class would affect any exporter emitting non-canonical guid strings (charset-legal, encoding-invalid).\n- Presumably related to the new GlobalId hash-index lookup path (also behind #9822 / #9827): if the lookup canonicalizes the key through expand/compress, encoding-invalid strings become unindexable even though they round-trip through the file verbatim.\n- Our workaround (happy to share pattern): on a `by_guid` miss, fall back to a lazily built `GlobalId -> id` map from one `by_type(\"IfcRoot\")` pass — resolves raw strings on both SPF and RocksDB files.\n","author":{"url":"https://github.com/darellchua2","@type":"Person","name":"darellchua2"},"datePublished":"2026-10-06T12:05:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9830"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fd8d76d4-f7c4-57c6-5745-96a44ddd24e8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDE74:24C069:C1C64A:1080208:6B048BE0
html-safe-nonce8bc4c68491f78e86e78b7b3e013babb33d7f39898095fef66f770c3354921ab1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTc0OjI0QzA2OTpDMUM2NEE6MTA4MDIwODo2QjA0OEJFMCIsInZpc2l0b3JfaWQiOiIzNDUwMDA1NTMxMTExMjMwNDMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca56866db38b38c55bd064224ccc5c58e88fbd81409fd63a6bbe1975c5691e4e5
hovercard-subject-tagissue:5728060791
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/IfcOpenShell/IfcOpenShell/9830/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7f190827d3f9e00e109dddb0215b978a242a027b19d8e8c45ddded6cd9f02dbc/IfcOpenShell/IfcOpenShell/issues/9830
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f190827d3f9e00e109dddb0215b978a242a027b19d8e8c45ddded6cd9f02dbc/IfcOpenShell/IfcOpenShell/issues/9830
og:image:altVersion: ifcopenshell 0.9.0 (PyPI wheel, Linux x86_64, Python 3.12) — behavior regression vs 0.8.5 Summary On a regular (in-memory SPF) file, file.by_guid on 0.9.0 raises RuntimeError: Instance wit...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedarellchua2
hostnamegithub.com
expected-hostnamegithub.com
None9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
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
releaseb51ce57ca6d4565a42856fc1c9897077c794597f
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/9830#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9830
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%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F9830
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=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9830
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9830
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9830
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests937 (937)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9830
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9830
#9839https://github.com/IfcOpenShell/IfcOpenShell/pull/9839
0.9.0 SPF files: by_guid misses charset-legal but invalid-base64 GlobalIds that 0.8.5 matched verbatimhttps://github.com/IfcOpenShell/IfcOpenShell/issues/9830#top
#9839https://github.com/IfcOpenShell/IfcOpenShell/pull/9839
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/darellchua2
darellchua2https://github.com/darellchua2
on Oct 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issue-5728060791
RocksDB stores: file.by_guid fails for every GlobalId (readonly and read-write) — guid index never built #9822https://github.com/IfcOpenShell/IfcOpenShell/issues/9822
RocksDB read-write store: by_guid fails or returns another entity for added or changed GlobalIds #9827https://github.com/IfcOpenShell/IfcOpenShell/issues/9827
https://github.com/aothms
aothmshttps://github.com/aothms
on Oct 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issuecomment-6016024399
cb7932chttps://github.com/IfcOpenShell/IfcOpenShell/commit/cb7932c96c50ce8382f2771e147ef0370ba1f510
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Oct 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issuecomment-6016417809
@aothmshttps://github.com/aothms
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Oct 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issuecomment-6018320842
@aothmshttps://github.com/aothms
@darellchua2https://github.com/darellchua2
#9492https://github.com/IfcOpenShell/IfcOpenShell/pull/9492
#9839https://github.com/IfcOpenShell/IfcOpenShell/pull/9839
8208352https://github.com/IfcOpenShell/IfcOpenShell/commit/820835268e8fc0e8592d1307c52d4c7b96e4e95f
#9839https://github.com/IfcOpenShell/IfcOpenShell/pull/9839
#9587https://github.com/IfcOpenShell/IfcOpenShell/pull/9587
petruconduraruhttps://github.com/petruconduraru
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Oct 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#event-32606959359
https://github.com/aothms
aothmshttps://github.com/aothms
on Oct 7, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issuecomment-6037374741
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Oct 8, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/9830#issuecomment-6052357707
@aothmshttps://github.com/aothms
#9839https://github.com/IfcOpenShell/IfcOpenShell/pull/9839
f96911chttps://github.com/IfcOpenShell/IfcOpenShell/commit/f96911ce5cca7c31b963226108329ee43e57b4c8
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9830
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/9830
PR ProposedA PR has been proposed for this bug/feature.https://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.