Commit Graph
5 Commits
Author SHA1 Message Date
upstream a0b55ff348 Upstream kanboard/kanboard state of the touched files before b550ef828b 2026-10-02 16:11:47 +02:00
dualfroz 19540701b6 fix(session): scope the session cookie to the directory without a trailing slash
UrlHelper::dir() always returns a trailing slash, so the session cookie was
scoped to "/kanboard/". That cookie is not sent back for "/kanboard", which
is exactly the url the bundled web.config and .htaccess serve the application
on: both rewrite to index.php whenever the request is not a file, so the
directory url is never redirected to its trailing-slash form.

The first login then stores redirectAfterLogin="/kanboard", redirects there
after a successful check, arrives without the session cookie and bounces back
to the login form with no error message.

Use the directory without the trailing slash, which is what the browser would
have picked as the default cookie path anyway and still matches every url
below it.
2026-10-02 09:50:13 +08:00
upstream 76ee9f8fd0 Upstream kanboard/kanboard state of the touched files before 69ce6fe26d 2026-09-11 23:09:02 +02:00
dualfroz 16430fd3d2 fix(api): return a full batch response when one request is forbidden
An AccessDeniedException raised by a single request was relayed out of the
batch loop, so the whole call answered with one error object instead of the
array of responses required by the JSON-RPC spec. Authentication failures
still fail the whole call.

Fixes #3879
2026-09-11 13:43:43 -07:00
upstream f06233d996 Upstream kanboard/kanboard state of the touched files before cf53b54597 2026-09-10 08:56:01 +02:00