Modify

Ticket #548 (closed defect: wontfix)

Opened 6 years ago

Last modified 3 years ago

Write configuration files in UTF-8

Reported by: dbaeyens@… Owned by: jsalamero@…
Milestone: nice to have someday Component: base
Severity: major Keywords:
Cc:

Description (last modified by jsalamero@…) (diff)

(Jabber server dies if c2s.xml is not an UTF-8 file) Jabber server dies unexpectedly if configuration file c2s.xml is incorrectly encoded and has special chars. File encoded in UTF-8 works OK.

Attachments

Change History

comment:1 Changed 5 years ago by anonymous

I've confirmed this. When the configuration parameter <> is in Spanish, the c2s module says:

sudo /usr/sbin/jabberd2-c2s -D -c /etc/jabberd2/c2s.xml

config_load: parse error at line 55: not well-formed (invalid token)

This line belongs to the element:

<instructions>Enter a username and password to register with this server.</instructions>

which is translated to the language which has been selected on language change.

comment:2 Changed 3 years ago by jacalvo@…

  • Owner changed from juruen@… to jsalamero@…
  • priority changed from normal to low

Jorge, can you confirm if this is still happening? Close the ticket if not.

comment:3 Changed 3 years ago by jsalamero@…

  • Status changed from new to assigned
  • Component changed from jabber to base
  • Description modified (diff)
  • Summary changed from Jabber server dies if c2s.xml is not an UTF-8 file to Write configuration files in UTF-8

adding binmode( $fh, ":utf8" ); to writeConfFileNoCheck in EBox/Module/Base.pm fixes this problem, we will commit this after 1.4.

not a problem of jabber itself, changed to base component.

comment:4 Changed 3 years ago by jacalvo@…

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

Is this still a problem? Reopen if there is a real reason to do it.

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.