Files
ocis/web/packages/web-pkg
Matteo 13abed9072 fix: [OCISDEV-1413] unify when the maintenance banner clears (#12966)
* fix: [OCISDEV-1413] unify when the maintenance banner clears

The webdav client and ClientService disagreed about when to clear
maintenance mode: webdav cleared it on any non-503 error, including a
plain 404 or 500, while ClientService only cleared it on a genuine
successful response. Whether the maintenance banner disappeared during
real maintenance depended on which client made the last request.

Both clients now only clear maintenance mode on a 2xx response, and the
now-unused clearOnUnrelatedError option is dropped.

* docs: link changelog entry to #12966

* fix: [OCISDEV-1413] treat the 503 signal, not general unhealthiness, as maintenance

Per review feedback: maintenance is an explicit, deliberately-chosen
server state, not the same as a general error. An unrelated response
(a 401, a 404, even a 500) proves the server answered and is not the
same as the 503 maintenance signal, so it should clear the banner too.
Only a transport-level failure, where no response is received at all,
is left untouched, since that is not evidence either way.
2026-09-17 15:11:37 +02:00
..

web-pkg

web-pkg is a package that provides utilities, most importantly a variety of components and composables, that can be useful when developing apps and extensions for ownCloud Web.

Installation

Depending on your package manager, run one of the following commands:

$ npm install @ownclouders/web-pkg --save-dev

$ pnpm add -D @ownclouders/web-pkg

$ yarn add @ownclouders/web-pkg --dev

It's recommended to install this package as a dev dependency because it's only really needed for providing autocompletion in your IDE and unit tests. In a runtime context, the ownCloud Web runtime provides the actual implementation.