The web frontend (now maintained in this monorepo under web/) re-establishes the authenticated context on page reload by calling updateContext(), which fetches user data over HTTP. Previously any error thrown there - including transient connectivity failures (ERR_NETWORK, timeouts, fetch TypeErrors) - was treated like an expired or invalid token, forcing a logout and redirect to the access-denied page. This adds an isNetworkError() classifier so connectivity failures preserve the existing session, while genuine auth rejections (carrying an HTTP response such as 401) still trigger the existing logout flow. Applies to the page-reload token-restore path and the addUserLoaded handler. Ports the fix for owncloud/web#12980 (originally owncloud/web#13941; owncloud/web is deprecated and development moved into this repo). Signed-off-by: dj4oC <noreply@github.com>
ownCloud Web
ownCloud Web is the next-generation frontend for ownCloud Infinite Scale, built as a single-page application with Vue.js and TypeScript. It provides a modern, accessible and themeable user interface for managing files, sharing, real-time collaboration and administration -- designed to be extensible through a plugin-based architecture that allows third-party developers to build custom apps and extensions.
Getting Started
Set up a local development environment for ownCloud Web:
Prerequisites
- Node.js (LTS recommended)
- pnpm
- Docker Compose (for backend)
For the complete development setup, see the setup guide.
Structure
The web/packages directory contains the core modules:
- client -- Generated TypeScript client for the oCIS Graph API
- container -- Static assets and base files
- extension-sdk -- Utilities for developing custom extensions
- pkg -- Shared logic used across the codebase
- runtime -- Authentication, routing, theming and application handling
Built-in apps (also in web/packages):
- files -- Core file sync-and-share functionality
- admin-settings -- User, group and space administration
- activities -- Activity stream
- app-store -- Browse and install extensions
- epub-reader -- Ebook file viewer
- external -- WOPI-based document editing (Collabora, ONLYOFFICE)
- pdf-viewer -- PDF file viewer
- preview -- Audio, video and image previewer
- text-editor -- Plain text editor