Koozali.org: home of the SME Server

Other Languages => Italiano => Topic started by: simone686 on July 15, 2023, 10:55:51 AM

Title: Lunghezza nome Ibays
Post by: simone686 on July 15, 2023, 10:55:51 AM
Stavo leggendo la documentazione ed ho trovato, cercando la possibilità di incrementare la lunghezza del nome delle ibays e delle shared folders, questa indicazione : " #4This 12-character restriction ensures that the i-bay can be shared correctly to all Windows machines."

Non è una condizione superata ? 12 caratteri ormai sembrano pochini, considerando che alle volte il nome comprende due o più parole.

Considerato che qnap (che sconsiglio sempre) da addirittura 64 come limiti del nome.
Si può fare qualcosa al riguardo?
Title: Re: Lunghezza nome Ibays
Post by: Jean-Philippe Pialasse on July 15, 2023, 03:42:44 PM
from ibays.pm per module:

Quote
Checks the length of a given i-bay name against the maximum set in the
maxIbayNameLength record of the configuration database.  Defaults to a
maximum length of the maxIbayNameLength set in the config db.

Reading you this would need 2 bugs open.
One to update documentation adding this information and make it easier to find as you can find it already in https://wiki.koozali.org/SME_Server:Documentation:FAQ:Section01#Changing_maximum_Ibay.2C_Account_or_Group_name_length

One to change the default from 12 to 24.

for you can do
config set maxIbayNameLength 24

Title: Re: Lunghezza nome Ibays
Post by: simone686 on July 17, 2023, 06:29:58 PM
Thanks.......

is there any similar modifications for Shared Folders too ?
Title: Re: Lunghezza nome Ibays
Post by: ReetP on July 21, 2023, 12:33:02 PM
is there any similar modifications for Shared Folders too ?

Have you checked and tested what it does?

If you check the code you will see this:

/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/shares.pm

Code: [Select]
sub create_share {
....
 $msg = $self->max_share_name_length($name);

And

Code: [Select]
sub max_share_name_length {
    my ($self, $data) = @_;
    $c->reload();
    my $max = $c->get('maxShareNameLength')->value || '12';

So shared-folders uses maxShareNameLength if it is set, or it defaults to 12

Title: Re: Lunghezza nome Ibays
Post by: simone686 on July 22, 2023, 12:13:06 PM
First of all Thanks......

I tried but no luck.....

Only 12 characters  even if :

# db config show maxShareNameLength
maxShareNameLength=24
Title: Re: Lunghezza nome Ibays
Post by: Fumetto on July 23, 2023, 09:16:26 AM
Hai dato un post-update & reboot?
Title: Re: Lunghezza nome Ibays
Post by: simone686 on July 24, 2023, 02:24:03 PM
si certo...
Title: Re: Lunghezza nome Ibays
Post by: ReetP on July 24, 2023, 04:24:39 PM
There are some issues we know about but as no one seems to be interested the contrib it gets left as we have other things that are more important.

https://wiki.koozali.org/SharedFolders#Bugs

I may try and have a look and tidy it up a bit. The rsyncd issues need resolving for sure.

However, I am not going to do much unless I get some help - I do not need this myself.
Title: Re: Lunghezza nome Ibays
Post by: ReetP on July 25, 2023, 10:29:05 AM
Note I just installed, post-upgrade/reboot, logged in, db configuration set maxShareNameLength 16, created a new ibay with 16 letters and it created without issue:

Code: [Select]
abcdefghijklmnop=share
    DynamicContent=disabled
    Encryption=disabled
    InactivityTimeOut=
    Indexes=disabled
    Name=Testing
    Pydio=disabled
    RecycleBin=disabled
    RecycleBinRetention=unlimited
    RequireSSL=disabled
    WebDav=disabled
    httpAccess=none
    smbAccess=browseable

There are other issues with rsync that I might look at fixing but the share works.

https://bugs.koozali.org/show_bug.cgi?id=12252
https://bugs.koozali.org/show_bug.cgi?id=11525