Editors with save
action (AppWrapper) don't use renewed token, 401 on save
#11062
Labels
save
action (AppWrapper) don't use renewed token, 401 on save
#11062
Describe the bug
When I keep an editor open until after a token renewal has happened, attempting to save my work results in a
401
. Apparently the renewed token is not being used, but the old expired one.Steps to reproduce
.md
file with out text editor apptoken
request in the network tab (= token renewal, happens every 5 minutes by default)Save
in the app top barExpected behavior
Document gets saved.
Actual behavior
Document doesn't get saved. I see an error toast, but if I ignore that (and the warning about the dirty state when leaving the page) my work is lost.
Additional context
Needs fixing in current
master
and instable-8.0
.@JammingBen and me already looked into this and think that the underlying issue is, that the
webdav
client gets destructured from theclientService
and that the headers loose their reactivity with that.The text was updated successfully, but these errors were encountered: