nextcloud / nextcloud/richdocuments

Migration/upgrade did not change version to varchar from int(11)

Open
#5,523 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
453
Forks
147
Avg merge
14h 54m
Merged PRs (30d)
83

Description

In Nextcloud 32.0.6, and richdocuments 9.0.5, the version column on oc_richdocuments_wopi is an int(11). However, latest collabora reports the version as "25.04.9.4", leading to errors abour an unauthorized WOPI host (but the issue is the database insert)

It can be fixed with the command below:

ALTER TABLE oc_richdocuments_wopi
MODIFY COLUMN version VARCHAR(50) DEFAULT '0';

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the migration or upgrade entry point that creates or alters the oc_richdocuments_wopi table, then inspect how the version column is defined. Update the upgrade path so existing installations accept the reported Collabora version string, and verify that the schema change is applied successfully during migration.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.