Modify

Ticket #3094 (closed defect: fixed)

Opened 22 months ago

Last modified 21 months ago

Share name after restart

Reported by: lioncub@… Owned by: cperez@…
Milestone: 2.2 Component: samba
Severity: normal Keywords:
Cc:

Description

After restarting Zentyal Samba share name displayed incorrectly. After re-saving displays correctly. Share name in UTF-8, Cyrillic. In /usr/share/perl5/EBox/Samba/Model/SambaShares.pm:

    # FIXME: Remove these checkings if configuration is written in UTF-8
    if (exists $parms->{'share'}) {
        my $shareName = $parms->{'share'}->value();
#        unless ($shareName =~ /^[\0-\x7f]+$/) {
#            throw EBox::Exceptions::External(
#                __('Only ASCII characters are valid for a share name'));
#        }
    }
    if (exists $parms->{'comment'}) {
        my $comment = $parms->{'comment'}->value();
#        unless ($comment =~ /^[\0-\x7f]+$/) {
#            throw EBox::Exceptions::External(
#                __('Only ASCII characters are valid for a share description'));
#        }

cat /etc/samba/smb.conf

After restarting:

...
[Временная папка]
 comment = Временная папка
 path = /home/samba/shares/temp
...

After re-saving:

...
[Временная папка]
 comment = Временная папка
 path = /home/samba/shares/temp
...

Attachments

Change History

comment:1 Changed 21 months ago by jacalvo@…

  • Owner changed from jacalvo to cperez@…

comment:2 Changed 21 months ago by cperez@…

  • Status changed from new to assigned

File seems ok, but have you tried Windows clients to see if everything keeps working? I'm not sure if old clients (like XP) work with this...

comment:3 Changed 21 months ago by cperez@…

  • priority changed from highest to normal

comment:4 Changed 21 months ago by lioncub@…

  • Status changed from assigned to closed
  • Resolution set to fixed

I administer a linuxmint 10 client. Please add default support utf8.

comment:5 Changed 21 months ago by lioncub@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:6 Changed 21 months ago by cperez@…

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [23023]) NN: Allow non-ascii characters in share names and comments (closes #3094)

comment:7 Changed 21 months ago by lioncub@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

After upgrade (to File Sharing Service 2.1.7). The problem remains!

After restarting (/etc/init.d/zentyal samba restart):

...
[Временная папка]
 comment = Временная папка
 path = /home/samba/shares/temp
...

After re-saving (displayed in the browser normally encoding)(Firefox 6, LinuxMint?, Utf-8):

...
[Временная папка]
 comment = Временная папка
 path = /home/samba/shares/temp
...

comment:8 Changed 21 months ago by jacalvo@…

Ok, now I've been able to reproduce it, the fix is coming asap. Thanks!

comment:9 Changed 21 months ago by jacalvo@…

  • Status changed from reopened to closed
  • Resolution set to fixed

This should be fixed if you upgrade to the new version (2.0.1) of libredis-perl that has just been released.

For that:

apt-get update apt-get install libredis-perl /etc/init.d/zentyal apache restart

It's possible that you need to re-edit the share names on the interface if they are already corrupt, but after that everything should go well no matter the restarts.

Let us know if you still find any problem after the upgrade. Thanks!

comment:10 Changed 21 months ago by liocnub@…

Thanks, everything is fine!

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.