Commit 7ac4afa
committed
fix(vxcore): canonicalize the notebook root when rejecting in-notebook imports
ImportFolder canonicalized only the external path and compared it against the raw stored root, so the containment guard silently passed whenever the two spellings of the same location differ. On the Windows CI runner TEMP is the 8.3 short path C:/Users/RUNNER~1/..., while fs::canonical resolves the external path to C:/Users/runneradmin/... - the prefix never matched and a folder inside the notebook was happily imported into itself. Symlinked roots hit the same hole on every platform.
Both sides now go through fs::weakly_canonical. Reproduced locally by pointing TMP/TEMP at an 8.3 alias: test_folder_import_within_notebook fails before the change and passes after.1 parent d07a5b0 commit 7ac4afa
2 files changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2284 | 2284 | | |
2285 | 2285 | | |
2286 | 2286 | | |
2287 | | - | |
2288 | | - | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
2289 | 2295 | | |
2290 | | - | |
| 2296 | + | |
2291 | 2297 | | |
2292 | | - | |
| 2298 | + | |
2293 | 2299 | | |
2294 | 2300 | | |
2295 | 2301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1729 | 1729 | | |
1730 | 1730 | | |
1731 | 1731 | | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1735 | 1739 | | |
1736 | | - | |
| 1740 | + | |
1737 | 1741 | | |
1738 | 1742 | | |
1739 | 1743 | | |
| |||
0 commit comments