Repository navigation
fix(fabric): correct Core errors, workspace responses, and deletion safety - #3873
Closed
Amos Hersch (AmosHersch) wants to merge 4 commits into
Closed
Amos Hersch (AmosHersch) wants to merge 4 commits into
Amos Hersch (AmosHersch) wants to merge 4 commits into
Conversation
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-http-status-errors
branch
from
October 7, 2026 11:55
a7b5144 to
17a8397
Compare
Amos Hersch (AmosHersch)
marked this pull request as ready for review
October 7, 2026 12:53
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation is consistent with the stated behavior and has comprehensive regression coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Corrects Fabric Create Item and Catalog Search validation/error handling, preserves HTTP statuses, and fixes Update Item error punctuation.
Changes:
- Adds UUID and continuation-request validation.
- Sanitizes public errors while preserving HTTP status codes.
- Expands tests, documentation, and changelog coverage.
| File | Description |
|---|---|
tools/Fabric.Mcp.Tools.Core/src/Commands/ItemCreateCommand.cs |
Validates workspace UUIDs and sanitizes errors. |
tools/Fabric.Mcp.Tools.Core/src/Commands/CatalogSearchCommand.cs |
Validates pagination and sanitizes errors. |
tools/Fabric.Mcp.Tools.Core/src/Commands/ItemUpdateCommand.cs |
Prevents duplicate punctuation. |
tools/Fabric.Mcp.Tools.Core/src/Services/FabricCoreService.cs |
Normalizes UUIDs and preserves HTTP statuses. |
tools/Fabric.Mcp.Tools.Core/src/Validation/CatalogSearchInputValidator.cs |
Adds shared catalog request validation. |
tools/Fabric.Mcp.Tools.Core/src/Options/ItemCreateOptions.cs |
Clarifies Create Item inputs. |
tools/Fabric.Mcp.Tools.Core/src/Options/CatalogSearchOptions.cs |
Clarifies continuation-token behavior. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/TestSupport/FabricCoreErrorTestData.cs |
Adds sanitization test helpers. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/ItemCreateCommandTests.cs |
Covers creation, validation, and failures. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/CatalogSearchCommandTests.cs |
Covers pagination and sanitized failures. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/ItemUpdateCommandTests.cs |
Verifies punctuation behavior. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceBaselineTests.cs |
Covers service validation and statuses. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/WorkspaceGetServiceTests.cs |
Updates preserved-status expectations. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/ItemListServiceTests.cs |
Updates preserved-status expectations. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceUpdateTests.cs |
Updates preserved-status expectations. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceListTests.cs |
Uses valid workspace UUID fixtures. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceDeleteTests.cs |
Updates preserved-status expectations. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceWorkspaceCreateTests.cs |
Uses valid UUIDs and status assertions. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceItemUpdateTests.cs |
Updates preserved-status expectations. |
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Services/FabricCoreServiceCapacityListTests.cs |
Updates continuation and UUID fixtures. |
servers/Fabric.Mcp.Server/README.md |
Documents requirements and pagination behavior. |
servers/Fabric.Mcp.Server/changelog-entries/amoshersch-fabric-preserve-http-status.yaml |
Records the fixes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
KupoCat
reviewed
Oct 8, 2026
KupoCat
approved these changes
Oct 8, 2026
Preserve response status in EnsureSuccessAsync and add operation-local HTTP guidance without changing shared error handling, result shapes, or retries. Cover service and command regressions, update old status-loss assertions, and add a Fabric bug-fix changelog entry. Co-authored-by: Copilot App <[email protected]>
Sanitize Create Item and Catalog Search public errors without changing status mappings or success contracts. Validate workspace UUIDs with the compatible alias, reject mixed catalog continuation criteria, document verified requirements, and correct Update Item error punctuation. Cover serialized Debug/Release errors and command/service validation. Co-authored-by: Copilot App <[email protected]>
Make workspace type optional across get, list, create, and update; retain configured HTTP transports while disabling automatic redirects; preserve confirmed delete responses during late cancellation and improve upstream 400 guidance. Correct all 23 invalid prompt interaction cells without changing 37 prompts, and add regression coverage and documentation. Co-authored-by: Copilot App <[email protected]>
Report only registered required option names for Create Item validation failures while keeping parser details private. Centralize null exception results in an AOT-safe Fabric command base and consolidate five identical throttling exceptions without changing operation-specific errors, retry contracts, or deletion modes. Co-authored-by: Copilot App <[email protected]>
Amos Hersch (AmosHersch)
force-pushed
the
amoshersch-fabric-http-status-errors
branch
from
October 8, 2026 08:29
1161bc1 to
5439353
Compare
9 of 21 tasks
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.
What does this PR do?
Corrects Fabric Core HTTP errors and input handling, with user-authorized review fixes delivered through this existing top PR rather than rewriting earlier stack layers.
--display-nameand--item-type, without exposing parser input, private paths, unknown names, or optional names. Catalog reuses the same safe-name helper and retains its existing generic/parser, page-size, and continuation guidance. Twelve commands share a small AOT-annotatedFabricCoreCommandbase for exception-result removal while retaining their operation-specific status/message overrides. The base requires an explicit message override rather than inheriting rawAuthenticatedCommanddetails.FabricThrottledExceptionand update their five service callers and command handlers. The existing validated delta/date formatting and invalid-header fallbacks are unchanged. Item List's tick-based precision, Item Delete's nullable-header/deletion wording, Workspace Update's wording, Item Update's integer seconds, capacity assignment's long seconds/sanitized result, and workspace creation's header string/uncertain-outcome contracts remain distinct. No alias exceptions or generic retry framework.workspacealias and precedence. Reject catalog continuation tokens combined with search/filter without changing token-only paging or the nested success contract. Keep the earlier help and Update Item punctuation corrections.Typeconsistently for Get/List/Create/Update, retaining ID/display-name/tag checks and future type strings. Disable automatic redirects on existing Fabric Core transports without replacing proxy/timeout/recording configuration. Honor a returned deletion 200 despite late cancellation, retain genuine cancellation handling, and distinguish upstream deletion 400 from local input errors. Hard-delete omitted/false/true behavior and exact-URL tests are unchanged.Command IDs/names, option names, metadata flags, descriptions, provider-delegating authentication, operation-specific retry guidance, and success envelopes are unchanged by the human-review follow-up. Catalog remains
results.results.valuewith continuationToken and hierarchy. The earlier public error-results removal and optional workspace-type correction remain intentional. No new tools, dependencies, infrastructure, retries, or shared Microsoft.Mcp.Core edits.This ready-for-review PR is the top of native stack 3860 and targets #3850, branch
amoshersch-fabric-assign-workspace-capacity, at07a5d88221b6b1fadfb9df2d6da91cc962be5a58. The latest normal follow-up commit is1161bc109a47409b95d3ce46b47d246e145f5046, directly after66d40867f87d8dafd511240b3159cd57fe25bfc7. No amendments, rebases, force-pushes, lower-ref changes, or stack metadata changes were made for this batch. Human-review replies are handled separately by the coordinator.Contract references: bundled
tools/Fabric.Mcp.Tools.Docs/src/Resources/fabric-rest-api-specs/contents/platform/definitions/platform.json; official Create Item, Catalog Search, and Fabric enablement.Validation
Fresh results for the human-review follow-up: source and Debug/Release test builds passed with 0 warnings/errors; 184 focused tests, the full 1,759-test Debug Core suite, and 577 scoped Release tests passed with 0 failed/skipped. The missing-option regressions reproduced 7 failures before the fix. New coverage includes specific safe missing names, mixed sensitive parser errors, forged/optional name filtering, and 55 real-service/fake-HTTP cases across all five shared throttling callers (zero/positive/max delta, HTTP date, missing/malformed/negative/fractional/overflow/multiple-value headers). Existing per-operation 403/429/503, authentication, cancellation, serialization, host/schema, and distinct retry-contract coverage remains passing.
Formatting, spelling, compatibility, and README checks
Fresh formatting checks passed without corrections on 23 existing source and 22 test files changed by the cumulative PR. Actual resolved paths were passed to
--include, and removed duplicate files were excluded. Spelling passed on all 48 existing changed files; the temporary cache was removed. These selection commands ran before staging the latest follow-up:All 12 affected command metadata/description blocks were compared with
66d40867and are unchanged. Options, response models, redirect setup, the prompt file, and all intentionally distinct retry types have no diff in this batch.git --no-pager diff --cached --checkpassed. No unrelated cleanup or formatting was performed.Historical evidence:
66d40867f87d8dafd511240b3159cd57fe25bfc7passed 18 focused tests and the then-1,695-test full Debug suite. Its exact shared-parser-regex/token check verified 37 unchanged natural prompts, 23 corrected cells, 14 valid cells preserved, and all List Capacities rows usingnone; the prompt file is unchanged by this follow-up.be5a204671c17053b0f58cbd979e9d5c8da93e78previously passed 1,669 Debug tests and 131 scoped Release tests. These are historical results, distinct from the fresh commands above.No real Fabric calls or mutations, live/recorded/OBO validation, or ToolDescriptionEvaluator calls were made. Fabric evaluator validation remains optional; no score or CI success is claimed. No whole-repository, native, or NPX build was needed.
GitHub issue number?
N/A — user-requested corrections and review follow-ups; no tracking issue was created. All corrections land through this top PR rather than modifying earlier PR heads.
Pre-merge Checklist
The one-tool checkbox is intentionally unchecked: the user approved the related Fabric corrections and review follow-ups in this existing top PR. New-tool/rename, evaluator, and Azure-only items are not applicable. README validation ran with the pre-existing warnings disclosed above.
servers/Azure.Mcp.Server/README.mdand/orservers/Fabric.Mcp.Server/README.mddocumentationREADME.mdchanges running the script./eng/scripts/Process-PackageReadMe.ps1. See Package READMEToolDescriptionEvaluatorand obtained a score of0.4or more and a top 3 ranking for all related test promptsconsolidated-tools.jsonbreaking-changelabelservers/Azure.Mcp.Server/docs/azmcp-commands.md./eng/scripts/Update-AzCommandsMetadata.ps1to update tool metadata inazmcp-commands.md(required for CI)servers/Azure.Mcp.Server/docs/e2eTestPrompts.mdcrypto mining, spam, data exfiltration, etc.)/azp run mcp - pullrequest - liveto run Live Test PipelineInvoking Livetests
Copilot submitted PRs are not trustworthy by default. Users with
writeaccess to the repo need to validate the contents of this PR before leaving a comment with the text/azp run mcp - pullrequest - live. This will trigger the necessary livetest workflows to complete required validation.