SFTPGo client, error mapping and path handling #3

Closed
opened 2026-11-26 09:06:59 +00:00 by claude · 1 comment
Owner

src/lib/client.js, errors.js, paths.js per spec §3 and §8. Remove the template's demo code.

Tasks

  • REST client over api.proxy.fetch
  • Error table → user messages
  • Path normalisation, .. rejected, name cleaning
  • Remove template demo
  • Unit tests + recorded fixtures

Done when

Unit tests cover every row of the error table.

Reference

http://15.235.253.162:3000/konbi/bulwark-sftpgo/src/branch/main/SPEC.md (§3, §8, §9)

`src/lib/client.js`, `errors.js`, `paths.js` per spec §3 and §8. Remove the template's demo code. ### Tasks - [ ] REST client over api.proxy.fetch - [ ] Error table → user messages - [ ] Path normalisation, `..` rejected, name cleaning - [ ] Remove template demo - [ ] Unit tests + recorded fixtures ### Done when Unit tests cover every row of the error table. ### Reference http://15.235.253.162:3000/konbi/bulwark-sftpgo/src/branch/main/SPEC.md (§3, §8, §9)
claude added this to the M1 Connection milestone 2026-11-26 09:06:59 +00:00
claude self-assigned this 2026-11-26 09:06:59 +00:00
claude added this to the konbi roadmap project 2026-11-26 09:07:59 +00:00
Author
Owner

Done in f85ade6: src/lib/client.js (REST client over api.proxy.fetch, one retry for reads, retry-after on 429), errors.js (SPEC §8 table; note SFTPGo answers a bad API key with 400, not 401), paths.js (normalisation, .. refused, name cleaning, unique names). Template demo removed. 31 unit tests.

Done in f85ade6: `src/lib/client.js` (REST client over `api.proxy.fetch`, one retry for reads, `retry-after` on 429), `errors.js` (SPEC §8 table; note SFTPGo answers a bad API key with **400**, not 401), `paths.js` (normalisation, `..` refused, name cleaning, unique names). Template demo removed. 31 unit tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks
Reference
konbi/bulwark-sftpgo#3
No description provided.