ensure WebDAVProvider.rootPath is a folder #336
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setting up the default WebDAV server, if you create a folder (
cube
in my example) with a dummy scene with it and navigate tohttp://localhost:8000/voyager-story-dev.html?document=/cube/scene.svx.json
WITHOUT setting theroot
parameter, the scene kinda works but for the asset tree not matching properly.Easiest way to show this is click
Create
in the Article Task. Nothing is shown until you click somewhere to deselect said article.I traced it back to
WebDAVProvider.rootPath
, being normally set to/cube/
but defaults to the value ofExplorerApplication.props.document
, here/cube/scene.svx.json
.I checked usage of this path and it looks like it's only used in
WebDAVProvider.parseResponse
Not sure if expecting
rootPath
to always end with a trailing "/" is a valid option though? It doesn't seem to work otherwise anyway? if I setroot=/cube
the scene won't load