allow longer sharing-path up to 1024 chars (instead of just 255), which also limited Collabora editing

This commit is contained in:
ralf 2024-09-10 09:48:07 +02:00
parent 9f02f15221
commit 87bb0fed29
3 changed files with 16 additions and 4 deletions

View File

@ -11,7 +11,7 @@
/* Basic information about this app */ /* Basic information about this app */
$setup_info['api']['name'] = 'api'; $setup_info['api']['name'] = 'api';
$setup_info['api']['title'] = 'EGroupware API'; $setup_info['api']['title'] = 'EGroupware API';
$setup_info['api']['version'] = '23.1.008'; $setup_info['api']['version'] = '23.1.009';
$setup_info['api']['versions']['current_header'] = '1.29'; $setup_info['api']['versions']['current_header'] = '1.29';
// maintenance release in sync with changelog in doc/rpm-build/debian.changes // maintenance release in sync with changelog in doc/rpm-build/debian.changes
$setup_info['api']['versions']['maintenance_release'] = '23.1.20240905'; $setup_info['api']['versions']['maintenance_release'] = '23.1.20240905';

View File

@ -396,14 +396,14 @@ $phpgw_baseline = array(
'fd' => array( 'fd' => array(
'share_id' => array('type' => 'auto','nullable' => False,'comment' => 'auto-id'), 'share_id' => array('type' => 'auto','nullable' => False,'comment' => 'auto-id'),
'share_token' => array('type' => 'ascii','precision' => '64','nullable' => False,'comment' => 'secure token'), 'share_token' => array('type' => 'ascii','precision' => '64','nullable' => False,'comment' => 'secure token'),
'share_path' => array('type' => 'varchar','precision' => '255','nullable' => False,'comment' => 'path to share'), 'share_path' => array('type' => 'varchar','precision' => '1024','nullable' => False,'comment' => 'path to share'),
'share_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'owner of share'), 'share_owner' => array('type' => 'int','meta' => 'user','precision' => '4','nullable' => False,'comment' => 'owner of share'),
'share_expires' => array('type' => 'date','comment' => 'expire date of share'), 'share_expires' => array('type' => 'date','comment' => 'expire date of share'),
'share_writable' => array('type' => 'int','precision' => '1','nullable' => False,'default' => '0','comment' => '0=readable, 1=writable'), 'share_writable' => array('type' => 'int','precision' => '1','nullable' => False,'default' => '0','comment' => '0=readable, 1=writable'),
'share_with' => array('type' => 'varchar','precision' => '4096','comment' => 'email addresses, comma seperated'), 'share_with' => array('type' => 'varchar','precision' => '4096','comment' => 'email addresses, comma seperated'),
'share_passwd' => array('type' => 'varchar','precision' => '128','comment' => 'optional password-hash'), 'share_passwd' => array('type' => 'varchar','precision' => '128','comment' => 'optional password-hash'),
'share_pw_reversable' => array('type' => 'varchar','precision' => '128','comment' => 'optional reversible password'), 'share_pw_reversable' => array('type' => 'varchar','precision' => '128','comment' => 'optional reversible password'),
'share_encryption' => array('type' => 'int','nullable' => True,'comment' => 'Type of encryption, user or system (See Credentials)'), 'share_encryption' => array('type' => 'int','precision' => '4','comment' => 'Type of encryption, user or system (See Credentials)'),
'share_modified' => array('type' => 'timestamp','precision' => '8','nullable' => False), 'share_modified' => array('type' => 'timestamp','precision' => '8','nullable' => False),
'share_modifier' => array('type' => 'int','meta' => 'user','precision' => '4'), 'share_modifier' => array('type' => 'int','meta' => 'user','precision' => '4'),
'share_created' => array('type' => 'timestamp','nullable' => False,'comment' => 'creation date'), 'share_created' => array('type' => 'timestamp','nullable' => False,'comment' => 'creation date'),

View File

@ -993,3 +993,15 @@ function api_upgrade23_1_007()
return $GLOBALS['setup_info']['api']['currentver'] = '23.1.008'; return $GLOBALS['setup_info']['api']['currentver'] = '23.1.008';
} }
function api_upgrade23_1_008()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_sharing','share_path',array(
'type' => 'varchar',
'precision' => '1024',
'nullable' => False,
'comment' => 'path to share'
));
return $GLOBALS['setup_info']['api']['currentver'] = '23.1.009';
}