You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/08/12 14:28:10 UTC
(tooling-trusted-releases) branch sbp updated: Treat a redirected move response as an error in the client
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/sbp by this push:
new e33e6882 Treat a redirected move response as an error in the client
e33e6882 is described below
commit e33e68824e37b74eb972c31ff75b991531b4fba4
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Aug 12 15:26:58 2026 +0100
Treat a redirected move response as an error in the client
---
atr/static/js/ts/move-files.js | 3 +++
atr/static/js/ts/move-files.js.map | 2 +-
atr/static/ts/move-files.ts | 3 +++
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/atr/static/js/ts/move-files.js b/atr/static/js/ts/move-files.js
index 13d5c5d9..87f08a16 100644
--- a/atr/static/js/ts/move-files.js
+++ b/atr/static/js/ts/move-files.js
@@ -333,6 +333,9 @@ async function moveFiles(files, dest, csrfToken, signal) {
},
signal,
});
+ if (response.redirected) {
+ return { ok: false, message: "The server did not accept the move request. Please reload the page and try again." };
+ }
if (response.ok) {
return { ok: true };
}
diff --git a/atr/static/js/ts/move-files.js.map b/atr/static/js/ts/move-files.js.map
index 1d8810d5..03f42ee3 100644
--- a/atr/static/js/ts/move-files.js.map
+++ b/atr/static/js/ts/move-files.js.map
@@ -1 +1 @@
-{"version":3,"file":"move-files.js","sourceRoot":"","sources":["../../ts/move-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,YAAY,CAAC;AAEb,IAAK,QAGJ;AAHD,WAAK,QAAQ;IACT,yBAAa,CAAA;IACb,uBAAW,CAAA;AACf,CAAC,EAHI,QAAQ,KAAR,QAAQ,QAGZ;AAED,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;IACrB,iBAAiB,EAAE,qBAAqB;IACxC,wBAAwB,EAAE,6BAA6B;IACvD,OAAO,EAAE,UAAU;IACnB,cAAc,EAAE,kBAAkB;IAClC,eAAe,EAAE,oBAAoB;IACrC,gBAAgB,EAAE,qBAAqB;IACvC,UAAU,EAAE,kBAAkB;IAC9B,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE [...]
\ No newline at end of file
+{"version":3,"file":"move-files.js","sourceRoot":"","sources":["../../ts/move-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;EAiBE;AAEF,YAAY,CAAC;AAEb,IAAK,QAGJ;AAHD,WAAK,QAAQ;IACT,yBAAa,CAAA;IACb,uBAAW,CAAA;AACf,CAAC,EAHI,QAAQ,KAAR,QAAQ,QAGZ;AAED,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;IACrB,iBAAiB,EAAE,qBAAqB;IACxC,wBAAwB,EAAE,6BAA6B;IACvD,OAAO,EAAE,UAAU;IACnB,cAAc,EAAE,kBAAkB;IAClC,eAAe,EAAE,oBAAoB;IACrC,gBAAgB,EAAE,qBAAqB;IACvC,UAAU,EAAE,kBAAkB;IAC9B,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE [...]
\ No newline at end of file
diff --git a/atr/static/ts/move-files.ts b/atr/static/ts/move-files.ts
index 69b7f66b..0fefe140 100644
--- a/atr/static/ts/move-files.ts
+++ b/atr/static/ts/move-files.ts
@@ -410,6 +410,9 @@ async function moveFiles(files: readonly string[], dest: string, csrfToken: stri
signal,
});
+ if (response.redirected) {
+ return { ok: false, message: "The server did not accept the move request. Please reload the page and try again." };
+ }
if (response.ok) {
return { ok: true };
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org