Commit 1970410
fix: file download path encoding and host volume validation errors
- Fix file download path encoding: use quote(path, safe='/') to properly
encode spaces and non-ASCII characters while preserving path separators
in both sync and async filesystem adapters.
- Fix host volume directory handling: auto-create missing host bind-mount
directories with os.makedirs, return HTTP 500 with HOST_PATH_CREATE_FAILED
error code on failure. Improve error message to use generic wording and
avoid leaking raw OS error details to clients.
- Fix endpoint proxy query string: preserve original query parameters when
proxying requests to sandbox endpoints.1 parent 291841b commit 1970410
5 files changed
Lines changed: 22 additions & 16 deletions
File tree
- sdks/sandbox/python/src/opensandbox
- adapters
- sync/adapters
- server/src
- api
- services
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | | - | |
| 479 | + | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
437 | 439 | | |
438 | 440 | | |
439 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
979 | | - | |
| 979 | + | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
986 | | - | |
| 987 | + | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
| |||
996 | 997 | | |
997 | 998 | | |
998 | 999 | | |
999 | | - | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
1000 | 1003 | | |
1001 | | - | |
| 1004 | + | |
1002 | 1005 | | |
1003 | | - | |
| 1006 | + | |
1004 | 1007 | | |
1005 | | - | |
1006 | | - | |
| 1008 | + | |
| 1009 | + | |
1007 | 1010 | | |
1008 | 1011 | | |
1009 | 1012 | | |
| |||
0 commit comments