René's URL Explorer Experiment


Title: Evaluating unchecked expressions in CEL-Java · Issue #276 · cel-expr/cel-java · GitHub

Open Graph Title: Evaluating unchecked expressions in CEL-Java · Issue #276 · cel-expr/cel-java

X Title: Evaluating unchecked expressions in CEL-Java · Issue #276 · cel-expr/cel-java

Description: Describe the bug In the README, under "Common Questions", it is written that: Checking is an optional, but strongly suggested, step in CEL expression validation. It is sufficient in some cases to simply Parse and rely on the runtime bind...

Open Graph Description: Describe the bug In the README, under "Common Questions", it is written that: Checking is an optional, but strongly suggested, step in CEL expression validation. It is sufficient in some cases to s...

X Description: Describe the bug In the README, under "Common Questions", it is written that: Checking is an optional, but strongly suggested, step in CEL expression validation. It is sufficient in some ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Evaluating unchecked expressions in CEL-Java","articleBody":"**Describe the bug**\r\n\r\nIn the README, under \"Common Questions\", it is written that:\r\n\r\n_Checking is an optional, but strongly suggested, step in CEL expression validation. It is sufficient in some cases to simply Parse and rely on the runtime bindings and error handling to do the right thing._\r\n\r\nI believe there currently is no way around checking an expression before evaluation, as an expression must be checked before it can be turned into a program and evaluated. An attempt to create a program from an unchecked AST always results in an error \"programs must be created from checked expressions\".\r\n\r\nChecking in turn requires declaring variables. However, in my particular use case, I cannot acquire a full list of variables to be used in expressions (there may be many, and acquiring variable values is costly, so I would only like to do this whenever required). I believe that the above should be achievable with an unchecked variable and CelVariableResolver.\r\n\r\nIt seems that this behavior deviates from CEL Go and also does not coincide with a similar question posted in the CEL Go group: https://groups.google.com/g/cel-go-discuss/c/PoyIrdFPwHM. Here, the possibility of evaluating unchecked expression is suggested. An (unrelated) Python implementation supports the same functionality: https://github.com/cloud-custodian/cel-python.\r\n\r\nI file this as a bug as the current behavior seems to be conflicting with respect to the documentation.\r\n\r\n**To Reproduce**\r\n\r\nCheck which components this affects:\r\n\r\n- [ ] parser\r\n- [ ] checker\r\n- [x] runtime\r\n\r\nWhen attempting to create a program from an unchecked AST:\r\n\r\n`var p = cel.createProgram(cel.parse(\"5\").getAst()).eval();`\r\n\r\n**Expected behavior**\r\n\r\nI expect to be able to evaluate the unchecked expression.\r\n\r\n**Additional context**\r\n\r\nNone.\r\n","author":{"url":"https://github.com/Frnd-me","@type":"Person","name":"Frnd-me"},"datePublished":"2024-03-20T16:57:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/276/cel-java/issues/276"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d5bdf465-53f2-f64d-266a-3704bb7dfbb9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9B6A:8F52B:3AC6AE:53B9D6:6A4E6CE7
html-safe-nonceea96b0d138222afa7e7403fd3c7c0c306c6589a54e1d40deaa7a875b36a7f68e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjZBOjhGNTJCOjNBQzZBRTo1M0I5RDY6NkE0RTZDRTciLCJ2aXNpdG9yX2lkIjoiNzE3Nzc4MzEzOTY2MTQwOTUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacaa5cf413ab7d909d608f68a858e1c5a701a5200be406ef4152f4f1e7e2d1a51c
hovercard-subject-tagissue:2198043147
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/276/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c9434bf19a5c21e177e57aebc6d08a10d277bc6611dcf79aa92f98ec80fd4ba/cel-expr/cel-java/issues/276
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c9434bf19a5c21e177e57aebc6d08a10d277bc6611dcf79aa92f98ec80fd4ba/cel-expr/cel-java/issues/276
og:image:altDescribe the bug In the README, under "Common Questions", it is written that: Checking is an optional, but strongly suggested, step in CEL expression validation. It is sufficient in some cases to s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFrnd-me
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cel-expr/cel-java/issues/276#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcel-expr%2Fcel-java%2Fissues%2F276
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F276
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/276
Reloadhttps://github.com/cel-expr/cel-java/issues/276
Reloadhttps://github.com/cel-expr/cel-java/issues/276
Please reload this pagehttps://github.com/cel-expr/cel-java/issues/276
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 272 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 17 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
Evaluating unchecked expressions in CEL-Javahttps://github.com/cel-expr/cel-java/issues/276#top
https://github.com/Frnd-me
Frnd-mehttps://github.com/Frnd-me
on Mar 20, 2024https://github.com/cel-expr/cel-java/issues/276#issue-2198043147
https://groups.google.com/g/cel-go-discuss/c/PoyIrdFPwHMhttps://groups.google.com/g/cel-go-discuss/c/PoyIrdFPwHM
https://github.com/cloud-custodian/cel-pythonhttps://github.com/cloud-custodian/cel-python
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.