René's URL Explorer Experiment


Title: Fix Name constructor failing with max length relative name and root origin by MMauro94 · Pull Request #289 · dnsjava/dnsjava · GitHub

Open Graph Title: Fix Name constructor failing with max length relative name and root origin by MMauro94 · Pull Request #289 · dnsjava/dnsjava

X Title: Fix Name constructor failing with max length relative name and root origin by MMauro94 · Pull Request #289 · dnsjava/dnsjava

Description: The Name constructor failed when passing a max-length (253 chars) relative name and Name.root as origin, while this name is technically allowed. The failure was caused by the Name constructor having the local "absolute" variable wrongly set to false in this case. This change fixes this by updating this flag when the origin is present. Previous to this fix the workaround was to pass a null origin and manually append the final dot (root) to the string: in this case the constructor would work (as demonstrated by the "ctor_max_length_abs" test. With this change I've also added a few tests for these edge-cases.

Open Graph Description: The Name constructor failed when passing a max-length (253 chars) relative name and Name.root as origin, while this name is technically allowed. The failure was caused by the Name constructor havin...

X Description: The Name constructor failed when passing a max-length (253 chars) relative name and Name.root as origin, while this name is technically allowed. The failure was caused by the Name constructor havin...

Opengraph URL: https://github.com/dnsjava/dnsjava/pull/289

X: @github

direct link

Domain: redirect.github.com

IPv4 address: 140.82.113.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bce0bc45-dd72-546e-7996-781082f17c3e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE190:39BFFD:576E42:7713A9:6B0609C2
html-safe-nonce1674761260d680756b49cc219d69b932bf5b61ebe216a5b6ac1a3aa522611645
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTkwOjM5QkZGRDo1NzZFNDI6NzcxM0E5OjZCMDYwOUMyIiwidmlzaXRvcl9pZCI6IjIwOTY2ODk4MTYwNjk4Njc5NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6018d259fe26d3427fcdc6d6adffd3eec7eaf835725846d9007845fb213c3fc0
hovercard-subject-tagpull_request:1453832505
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/dnsjava/dnsjava/pull/289/files
twitter:imagehttps://avatars.githubusercontent.com/u/21290655?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/21290655?s=400&v=4
og:image:altThe Name constructor failed when passing a max-length (253 chars) relative name and Name.root as origin, while this name is technically allowed. The failure was caused by the Name constructor havin...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None47127d2f2009e000f3401193f8b4163109ac669adad0804de1ee0e6333ca7b9e
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/dnsjava/dnsjava git https://github.com/dnsjava/dnsjava.git
octolytics-dimension-user_id6755615
octolytics-dimension-user_logindnsjava
octolytics-dimension-repository_id17084567
octolytics-dimension-repository_nwodnsjava/dnsjava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17084567
octolytics-dimension-repository_network_root_nwodnsjava/dnsjava
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
release0760ea46a027ba5099cdef7abd54f27865eb4f44
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/dnsjava/dnsjava/pull/289/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fpull%2F289%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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdnsjava%2Fdnsjava%2Fpull%2F289%2Ffiles
Sign uphttps://redirect.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=dnsjava%2Fdnsjava
Reloadhttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
Reloadhttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
Reloadhttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
dnsjavahttps://redirect.github.com/dnsjava
dnsjavahttps://redirect.github.com/dnsjava/dnsjava
Codehttps://redirect.github.com/dnsjava/dnsjava
Issues16 (16)https://redirect.github.com/dnsjava/dnsjava/issues
Pull requests3 (3)https://redirect.github.com/dnsjava/dnsjava/pulls
Actionshttps://redirect.github.com/dnsjava/dnsjava/actions
Security and quality8 (8)https://redirect.github.com/dnsjava/dnsjava/security
Insightshttps://redirect.github.com/dnsjava/dnsjava/insights
Sign up for GitHub https://redirect.github.com/signup?return_to=%2Fdnsjava%2Fdnsjava%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://redirect.github.com/login?return_to=%2Fdnsjava%2Fdnsjava%2Fissues%2Fnew%2Fchoose
MMauro94https://redirect.github.com/MMauro94
dnsjava:masterhttps://redirect.github.com/dnsjava/dnsjava/tree/master
Conversation 6 https://redirect.github.com/dnsjava/dnsjava/pull/289
Commits 1 https://redirect.github.com/dnsjava/dnsjava/pull/289/commits
Checks 0 https://redirect.github.com/dnsjava/dnsjava/pull/289/checks
Files changed https://redirect.github.com/dnsjava/dnsjava/pull/289/files
Please reload this pagehttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
Fix Name constructor failing with max length relative name and root origin https://redirect.github.com/dnsjava/dnsjava/pull/289/files#top
Show all changes 1 commit https://redirect.github.com/dnsjava/dnsjava/pull/289/files
84e0e23 Fix Name constructor failing with max length relative name and root o… Jul 27, 2023 https://redirect.github.com/dnsjava/dnsjava/pull/289/commits/84e0e2365ba533fbb247145bc44991ea4b401782
Clear filters https://redirect.github.com/dnsjava/dnsjava/pull/289/files
Please reload this pagehttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
Please reload this pagehttps://redirect.github.com/dnsjava/dnsjava/pull/289/files
Name.java https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-30201424361767ef71d4605d8e706dca3e3b52dc155567f1b4e367543615dabf
NameTest.java https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-fc659ae70efe924a8a1575cf1d982c1bab7d51d2360618be0ee87e5e2a9bc3b4
src/main/java/org/xbill/DNS/Name.javahttps://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-30201424361767ef71d4605d8e706dca3e3b52dc155567f1b4e367543615dabf
View file https://redirect.github.com/dnsjava/dnsjava/blob/84e0e2365ba533fbb247145bc44991ea4b401782/src/main/java/org/xbill/DNS/Name.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/dnsjava/dnsjava/pull/289/{{ revealButtonHref }}
https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-30201424361767ef71d4605d8e706dca3e3b52dc155567f1b4e367543615dabf
https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-30201424361767ef71d4605d8e706dca3e3b52dc155567f1b4e367543615dabf
src/test/java/org/xbill/DNS/NameTest.javahttps://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-fc659ae70efe924a8a1575cf1d982c1bab7d51d2360618be0ee87e5e2a9bc3b4
View file https://redirect.github.com/dnsjava/dnsjava/blob/84e0e2365ba533fbb247145bc44991ea4b401782/src/test/java/org/xbill/DNS/NameTest.java
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/dnsjava/dnsjava/pull/289/{{ revealButtonHref }}
https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-fc659ae70efe924a8a1575cf1d982c1bab7d51d2360618be0ee87e5e2a9bc3b4
https://redirect.github.com/dnsjava/dnsjava/pull/289/files#diff-fc659ae70efe924a8a1575cf1d982c1bab7d51d2360618be0ee87e5e2a9bc3b4
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.