Repository navigation
check: refuse add attribute on an external entity the script creates (CE6612) - #2711
Merged
Merged
Conversation
…(CE6612) exec refused it once the create had run; check skipped every script-created entity, so the two disagreed. The script context now records the external entities a script creates, with their service, and the existing refusal covers them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
ako
marked this pull request as ready for review
December 1, 2026 06:31
…dd-attr-script # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2477, from re-checking an old backlog note ("
add attributeon an external entity passes plaincheck -p").The note was mostly stale. For an external entity stored in the project,
check -pandexecboth refuseadd attribute(CE6612), because-pnow implies--references.What was still open: an external entity the script creates.
create external entity M.E from odata client …followed byalter entity M.E add attribute X: …passedcheck, whileexecrefused the alter once the create had run. Socheckandexecdisagreed. The check skipped every entity insc.entities, and a script-created external entity was recorded there like any other.The fix:
scriptContext.externalEntitiesrecords the external entities a script creates, with their service.validateViewEntityAttributeSetgives them the existing CE6612 refusal.Evidence
TestAlterEntity_RefusesAddAttributeOnScriptExternalEntity_2477failed before the fix and passes after. Its control, a script-created local entity, is still accepted. The existing [up#1913] OData Vendor Enum Attributes Dropped at Import; Cross-Module Enum Causes CE6612 #2477 tests still pass.make ci-localpasses.Generated by Claude Code