Koozali.org: home of the SME Server

Lunghezza nome Ibays

Offline simone686

  • ***
  • 90
  • +0/-0
Lunghezza nome Ibays
« 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?

Offline Jean-Philippe Pialasse

  • *
  • 2,841
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Lunghezza nome Ibays
« Reply #1 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


Offline simone686

  • ***
  • 90
  • +0/-0
Re: Lunghezza nome Ibays
« Reply #2 on: July 17, 2023, 06:29:58 PM »
Thanks.......

is there any similar modifications for Shared Folders too ?

Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: Lunghezza nome Ibays
« Reply #3 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

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline simone686

  • ***
  • 90
  • +0/-0
Re: Lunghezza nome Ibays
« Reply #4 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

Offline Fumetto

  • *
  • 884
  • +1/-0
Re: Lunghezza nome Ibays
« Reply #5 on: July 23, 2023, 09:16:26 AM »
Hai dato un post-update & reboot?

Offline simone686

  • ***
  • 90
  • +0/-0
Re: Lunghezza nome Ibays
« Reply #6 on: July 24, 2023, 02:24:03 PM »
si certo...

Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: Lunghezza nome Ibays
« Reply #7 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.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,854
  • +5/-0
Re: Lunghezza nome Ibays
« Reply #8 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation