Skip to content

EuroOffice firebase/php-jwt dependency conflicts with Nextcloud Whiteboard (Hetzner Storageshare) #152

Description

@jschmdt

Version: Nextcloud Hub 26 Winter (33.0.6)
Hosting: Hetzner Storageshare

Whiteboard fails when the EuroOffice Nextcloud app is installed and enabled.

I originally reported it in the Nextcloud Whiteboard repository:
nextcloud/whiteboard#1307

Symptoms

With EuroOffice enabled:

  • Whiteboard files cannot be opened or edited correctly.
  • The Whiteboard admin settings page returns an Internal Server Error.
  • Nextcloud logs contain:
DomainException: Provided key is too short

The stack trace shows that Whiteboard's JWT code is using the JWT implementation bundled by EuroOffice:

/custom_apps/eurooffice/vendor/firebase/php-jwt/src/JWT.php
/custom_apps/whiteboard/lib/Service/JWTService.php
/custom_apps/whiteboard/lib/Settings/Admin.php

In particular:

Firebase\JWT\JWT::encode(...)
OCA\Whiteboard\Service\JWTService->generateJWTFromPayload(...)

This suggests that EuroOffice's bundled firebase/php-jwt dependency is being loaded in a way that conflicts with the dependency expected by Whiteboard.

Reproduction / comparison

  • ❌ EuroOffice (eurooffice) enabled → Whiteboard admin page throws an Internal Server Error and Whiteboards cannot be edited.
  • ✅ EuroOffice disabled → Whiteboard works.
  • ✅ Collabora-based Nextcloud Office (richdocuments) enabled instead → Whiteboard works normally.

The affected report was using EuroOffice 11.0.4.

Expected behavior

EuroOffice should not override or interfere with PHP dependencies used by other Nextcloud apps.

Suspected cause

There appears to be a dependency/autoload conflict involving EuroOffice's bundled firebase/php-jwt package.

Whiteboard calls its own JWT service, but the stack trace enters:

/custom_apps/eurooffice/vendor/firebase/php-jwt/src/JWT.php

and fails with:

Provided key is too short

Related issue

Nextcloud Whiteboard issue:
nextcloud/whiteboard#1307

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions