René's URL Explorer Experiment


Title: [BUG] Bytes to string conversion function does not error for invalid code points · Issue #716 · cel-expr/cel-java · GitHub

Open Graph Title: [BUG] Bytes to string conversion function does not error for invalid code points · Issue #716 · cel-expr/cel-java

X Title: [BUG] Bytes to string conversion function does not error for invalid code points · Issue #716 · cel-expr/cel-java

Description: Describe the bug According to the language definition, string(bytes) -> string converts a byte sequence to a UTF-8 string, errors for invalid code points. However, cel-java does not error for invalid code points. To Reproduce string(b"\x...

Open Graph Description: Describe the bug According to the language definition, string(bytes) -> string converts a byte sequence to a UTF-8 string, errors for invalid code points. However, cel-java does not error for inval...

X Description: Describe the bug According to the language definition, string(bytes) -> string converts a byte sequence to a UTF-8 string, errors for invalid code points. However, cel-java does not error for in...

Opengraph URL: https://github.com/cel-expr/cel-java/issues/716

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Bytes to string conversion function does not error for invalid code points","articleBody":"**Describe the bug**\n\nAccording to the language definition, \n\n\u003e `string(bytes) -\u003e string` converts a byte sequence to a UTF-8 string, errors for invalid code points. \n\nHowever, cel-java does not error for invalid code points.\n\n**To Reproduce**\n```cel\nstring(b\"\\xff\")\n```\n\n**Expected behavior**\n\nI would expect a runtime error, but the expression evaluates to `\"�\"` instead.\n\n\n**Additional context**\n\n[`bytes_to_string` calls `ByteString::toStringUtf8`](https://github.com/google/cel-java/blob/v0.9.1/runtime/src/main/java/dev/cel/runtime/CelStandardFunctions.java#L908). It should probably check `ByteString::isValidUtf8` first, and raise an error if that returns false.","author":{"url":"https://github.com/timostamm","@type":"Person","name":"timostamm"},"datePublished":"2025-06-06T13:44:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/716/cel-java/issues/716"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2b1b1cec-d658-52bd-5e52-1db5e654ad2a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8CE:3B88A6:11607B:177F89:6A4D7C69
html-safe-nonce5ebf78dfef623180a8da9c5239390934c14b64ff142538056e91c0ddb6195867
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOENFOjNCODhBNjoxMTYwN0I6MTc3Rjg5OjZBNEQ3QzY5IiwidmlzaXRvcl9pZCI6IjI0NTM3NDk2NDE1ODMwOTg5ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4d0f41e1e98cb44fe09d933cb80270254a389dcb7fd1c1b18cb46c77b2b4d7a6
hovercard-subject-tagissue:3124834305
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/cel-expr/cel-java/716/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1f9a9319b068a21648bd4a4fd8bc9db75d5daed46dd8ea452ca138711bad7e56/cel-expr/cel-java/issues/716
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1f9a9319b068a21648bd4a4fd8bc9db75d5daed46dd8ea452ca138711bad7e56/cel-expr/cel-java/issues/716
og:image:altDescribe the bug According to the language definition, string(bytes) -> string converts a byte sequence to a UTF-8 string, errors for invalid code points. However, cel-java does not error for inval...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametimostamm
hostnamegithub.com
expected-hostnamegithub.com
None7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3
turbo-cache-controlno-preview
go-importgithub.com/cel-expr/cel-java git https://github.com/cel-expr/cel-java.git
octolytics-dimension-user_id186625994
octolytics-dimension-user_logincel-expr
octolytics-dimension-repository_id587078119
octolytics-dimension-repository_nwocel-expr/cel-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id587078119
octolytics-dimension-repository_network_root_nwocel-expr/cel-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
release8608b0750fc35e283e5ec5b094bff942d7a0e197
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cel-expr/cel-java/issues/716#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcel-expr%2Fcel-java%2Fissues%2F716
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcel-expr%2Fcel-java%2Fissues%2F716
Sign up https://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=cel-expr%2Fcel-java
Reloadhttps://github.com/cel-expr/cel-java/issues/716
Reloadhttps://github.com/cel-expr/cel-java/issues/716
Reloadhttps://github.com/cel-expr/cel-java/issues/716
Please reload this pagehttps://github.com/cel-expr/cel-java/issues/716
cel-expr https://github.com/cel-expr
cel-javahttps://github.com/cel-expr/cel-java
Notifications https://github.com/login?return_to=%2Fcel-expr%2Fcel-java
Fork 38 https://github.com/login?return_to=%2Fcel-expr%2Fcel-java
Star 271 https://github.com/login?return_to=%2Fcel-expr%2Fcel-java
Code https://github.com/cel-expr/cel-java
Issues 8 https://github.com/cel-expr/cel-java/issues
Pull requests 15 https://github.com/cel-expr/cel-java/pulls
Actions https://github.com/cel-expr/cel-java/actions
Projects https://github.com/cel-expr/cel-java/projects
Security and quality 0 https://github.com/cel-expr/cel-java/security
Insights https://github.com/cel-expr/cel-java/pulse
Code https://github.com/cel-expr/cel-java
Issues https://github.com/cel-expr/cel-java/issues
Pull requests https://github.com/cel-expr/cel-java/pulls
Actions https://github.com/cel-expr/cel-java/actions
Projects https://github.com/cel-expr/cel-java/projects
Security and quality https://github.com/cel-expr/cel-java/security
Insights https://github.com/cel-expr/cel-java/pulse
#717https://github.com/cel-expr/cel-java/pull/717
[BUG] Bytes to string conversion function does not error for invalid code pointshttps://github.com/cel-expr/cel-java/issues/716#top
#717https://github.com/cel-expr/cel-java/pull/717
https://github.com/timostamm
timostammhttps://github.com/timostamm
on Jun 6, 2025https://github.com/cel-expr/cel-java/issues/716#issue-3124834305
bytes_to_string calls ByteString::toStringUtf8https://github.com/google/cel-java/blob/v0.9.1/runtime/src/main/java/dev/cel/runtime/CelStandardFunctions.java#L908
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.