-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A PROPFIND request is sent to the wrong address from voyager-story if root is provided #252
Comments
Can you provide some more detail on your setup? Are you using the file server included in the Voyager package? have you modified dpo-voyager/source/server/index.ts Line 36 in 59867ed
|
Hi,
When loading, it fires a This initial request doesn't happen if dragdrop is disabled. I might be able to investigate this further next week and maybe propose a fix. |
Hi @sdumetz , I'm not seeing the exact result as you, but generally speaking I think the issue you are seeing stems from the comment here:
There is a flag to indicate that the base url for the WebDAV requests is valid. The initialization steps won't happen unless it is true. This validation generally happens by attempting to load the document file and setting that flag if successful. When using dragdrop, we can't assume that a non-loading url is invalid as you may have a folder that does not yet have a scene saved. Without explicitly setting that flag, the loading will crash in that scenario. If you have any ideas for a fix that still works with this dragdrop scenario, that would be great. |
Thanks for the tip! It's just that mediaManager.rootUrl was set after this, and seems to fire the request synchronously. I tested on an empty directory and dragdrop enabled using the "example server" and it did initialize just fine. |
I'm using voyager-story from a
/ui/
route in my application, referencing a scene in a separate/scenes/
folder.It works fine excepts that a
PROPFIND /ui/scenes/:scene_name
gets sent beforeCAssetManager.rootUrl
could be properly assigned in StoryApplication.evaluateProps().In the end it boils down to
CVMediaManager.baseUrl
not being the same thing asCAssetManager.rootUrl
until re-set inStoryApplication.evaluateProps()
for reasons I do not really understand.If that's a desired behavior and the reassignment can't be made before the request is sent, I could write a patch where
WebDAVProvider
makes use of anAbortController
to cancel the request in-flight, which would at least hide the error.The text was updated successfully, but these errors were encountered: