Skip to content

Comments

fix: review fixes for pdpv0#1023

Open
Reiers wants to merge 1 commit intopdpv0from
fix/pdpv0-review-fixes
Open

fix: review fixes for pdpv0#1023
Reiers wants to merge 1 commit intopdpv0from
fix/pdpv0-review-fixes

Conversation

@Reiers
Copy link
Contributor

@Reiers Reiers commented Feb 18, 2026

Fixes from code review of #1013, opened against pdpv0 as requested.

Bug fixes

  • Missing return after 404 in handleDeleteDataSetPiece — without it, a "Piece not found" response falls through to the on-chain transaction call, wasting gas
  • GET → POST mismatch in pdptool upload — the /pdp/piece/uploads route is registered as POST but pdptool sends GET, so streaming upload initiation is broken

Typos

  • "miss-match" → "mismatch" (2 occurrences in handlers_add.go)
  • "failed to to insert" → "failed to insert" (task_pdp_ipni.go)

Minor

  • handleDeleteDataSet stub — changed from 400 Bad Request to 501 Not Implemented (400 implies client error)

- Add missing return after 404 in handleDeleteDataSetPiece (would fall through to on-chain tx)
- Fix pdptool upload: GET → POST for /pdp/piece/uploads (route is registered as POST)
- Fix 'miss-match' → 'mismatch' (2 occurrences in handlers_add.go)
- Fix 'failed to to insert' → 'failed to insert' (task_pdp_ipni.go)
- Change handleDeleteDataSet stub from 400 → 501 Not Implemented
@github-actions github-actions bot added the team/fs-wg Items being worked on or tracked by the "FS Working Group". See FilOzone/github-mgmt #10 label Feb 18, 2026
client := &http.Client{}

req, err := http.NewRequest("GET", serviceURL+"/pdp/piece/uploads", nil)
req, err := http.NewRequest("POST", serviceURL+"/pdp/piece/uploads", nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find

Copy link
Member

@rvagg rvagg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fantastic

@LexLuthr
Copy link
Contributor

@Reiers merge pdpv0 into this and resolve conflict and merge this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/fs-wg Items being worked on or tracked by the "FS Working Group". See FilOzone/github-mgmt #10

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants