Skip to content

fix(nuget): preserve explicitly spaced publisher metadata - #14906

Merged
vincentkoc merged 1 commit into
mainfrom
fix/nuget-preserved-publisher-text
Nov 27, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/nuget-preserved-publisher-text

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

NuGet package reports lost leading indentation and final newlines in authors and descriptions even when their XML explicitly requested preservation. The metadata reader now resolves the nearest xml:space before trimming substantive text. The retained summary uses the same parsed identity. The package guide describes inheritance and reset behavior. NuGet metadata index · XML whitespace handling

Evidence and regression coverage

For a preserved description containing four leading spaces and a final CRLF, the old report gave "first\n second". The corrected report and retained summary both give " first\n second\n". Added regressions for an author with direct preservation and a description inheriting it from the package, alongside an author that resets to the default.

Compared nine in-memory package fixtures on the pinned Node runtime against the base revision. Four now preserve the requested values. The other five kept identical reports, summaries, and Evidence IDs, including blank fallback, blank CDATA, mixed text, and default reset. Only the two publisher fields and their derived Evidence identifiers differed across the suite. Both TypeScript files passed Node syntax and formatting checks, and git diff --check passed. The fixtures require no restore, external provider, or feed.

@vincentkoc
vincentkoc marked this pull request as ready for review November 27, 2026 14:10
@vincentkoc
vincentkoc enabled auto-merge (squash) November 27, 2026 14:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T14:11:49.204655Z cc865d0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Preserves leading and trailing whitespace in nonblank NuGet publisher fields when xml:space="preserve" applies.

  • NuGet reports keep publisher whitespace when the XML asks to preserve it.

Reviews (2) · Last reviewed commit: "fix(nuget): preserve explicitly spaced p..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit bbed314 into main Nov 27, 2026
40 checks passed
@vincentkoc
vincentkoc deleted the fix/nuget-preserved-publisher-text branch November 27, 2026 14:16
vincentkoc added a commit that referenced this pull request Nov 27, 2026
…pgp-633-20261127

* commit '3097263763611eb0c32c502d5a222060cf02f468':
  fix(cli): describe universal Mach-O slice selection without a single-dash flag (#14912)
  fix(iso9660): read Joliet trees whose .. records name their own directory (#14817)
  feat(gpu)!: add per-call object, work, report, metadata, structure, and parser budgets to inspect_gpu_code_objects (#14882)
  fix(macho)!: select arm64e.x1 slices of universal Mach-O files by exact subtype (#14881)
  refactor(views): share bounded parent and report limitations (#14902)
  refactor(desktop): share XML parent pointers in task drafts (#14905)
  feat(ghidra): define function-pointer members and typedefs (#14889)
  refactor(setup): share publication destination checks (#14904)
  perf(ci): skip unused test runtime uploads (#14903)
  fix(nuget): preserve explicitly spaced publisher metadata (#14906)
  fix(artifacts): keep uImage coverage unknown when bytes follow the declared payload (#14896)
  fix(artifacts): report incomplete Android sparse coverage (#14883)
  fix(tar): require both end-of-archive blocks for complete coverage (#14884)
  refactor(views): centralize indexed row paging (#14878)
  refactor(views): reuse optional filters in report projections (#14877)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant