Repository navigation
Commit dc0728c
fix(httpapi): percent-decode the registry {id} on search, refresh, edit and remove
A custom registry id is user-chosen (add-source --id) and may contain
characters the CLI (url.PathEscape) and Web UI (encodeURIComponent)
percent-encode, such as ':' or '/'. chi routes on RawPath, so the {id}
param arrived encoded and the exact-match lookup missed: the registry
could be added but not searched, refreshed, edited or removed.
handleAddFromRegistry already decodes; apply the same decodePathParam
in the other four registry handlers.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent c82d515 commit dc0728c
2 files changed
Lines changed: 71 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6417 | 6417 | | |
6418 | 6418 | | |
6419 | 6419 | | |
6420 | | - | |
| 6420 | + | |
6421 | 6421 | | |
6422 | 6422 | | |
6423 | 6423 | | |
| |||
6673 | 6673 | | |
6674 | 6674 | | |
6675 | 6675 | | |
6676 | | - | |
| 6676 | + | |
6677 | 6677 | | |
6678 | 6678 | | |
6679 | 6679 | | |
| |||
6712 | 6712 | | |
6713 | 6713 | | |
6714 | 6714 | | |
6715 | | - | |
| 6715 | + | |
6716 | 6716 | | |
6717 | 6717 | | |
6718 | 6718 | | |
| |||
6751 | 6751 | | |
6752 | 6752 | | |
6753 | 6753 | | |
6754 | | - | |
| 6754 | + | |
6755 | 6755 | | |
6756 | 6756 | | |
6757 | 6757 | | |
| |||
0 commit comments