mziech / nextcloud-cas

Basic CAS protocol server (IdP) implementation for NextCloud
GNU Affero General Public License v3.0
5 stars 1 forks source link

Column "oc_cas_ticket"."service" is type String, but exceeding the 4.000 length limit. #8

Closed mv-stns closed 2 years ago

mv-stns commented 2 years ago

Cant enable CAS Server

Error:

Column "oc_cas_ticket"."service" is type String, but exceeding the 4.000 length limit.

Steps to reproduce

Try install CAS Server & enable it

Expected behavior

Should just be enabled and work

Installation method

Via cli with

php occ app:install cas

Or just via Settings > Apps > CAS Server > Install & Enable

Nextcloud Version

24.0

Operating system

Ubuntu 20.04/ Plesk

PHP version

PHP 8.1

Web server

NGINX

Database engine version

mysql Ver 15.1 Distrib 10.3.34-MariaDB

Is this bug present after an update or on a fresh install?

Fresh Install

Are you using the Nextcloud Server Encryption module?

Yes

List of activated Apps

mziech commented 2 years ago

Thanks for the report!

It seems to be caused by https://github.com/nextcloud/server/pull/31679 ... Oracle DB support. The fix is to either reduce the column length to 4000 or drop Oracle support ... 4000 chars should be more than enough, though.

mziech commented 2 years ago

I reduced the length of service (callback URL) to 2000 characters, should be enough.