Project

General

Profile

Actions

Bug #14757

open

Special character encoding - crash on save / config restore

Added by Alex G over 1 year ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
XML Parser
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
All

Description

I have posted this in the forum and could verify / reproduce the problem.
I upgraded from version 2.6.0 to 2.7.0 and when there are some changes made the system restores an old config.

The problem is located at the description field of user and groups. If there is a "ü& in the the description it crashes on save. Details with screenshots in the forum post link below.

[[https://forum.netgate.com/topic/182658/not-wanted-autmatic-config-restore?_=1694018191854]]


Files

clipboard-202309071244-tl6sl.png (157 KB) clipboard-202309071244-tl6sl.png Danilo Zrenjanin, 09/07/2023 10:44 AM
clipboard-202309071244-11kg6.png (80 KB) clipboard-202309071244-11kg6.png Danilo Zrenjanin, 09/07/2023 10:44 AM
Actions #1

Updated by Alex G over 1 year ago

The caracter in the description is encoded like this

ü

has been mangeld in the report abouve.

Actions #2

Updated by Danilo Zrenjanin over 1 year ago

I couldn't reproduce that issue if I entered the same description for a group directly in the 23.05.1 release.

It seems like that appears only if the comment was there before the upgrade.


Actions #3

Updated by Alex G over 1 year ago

Hi,

the comment was in there bevore we updates to the new Version 2.7.0 not the 23.05.1.
Also the issue ocurred when the stuff WAS in the config and you tried to edit it. So Changeing the ü ΓΌ to a ue in the gui resulted 3 times in a config restore right away without a reboot.

Danilo Zrenjanin wrote in #note-2:

I couldn't reproduce that issue if I entered the same description for a group directly in the 23.05.1 release.

Actions #4

Updated by Lev Prokofev 12 months ago

Not able to replicate this,
I set the group name with "ü" on 2.6

        <group>
            <name>123</name>
            <description><![CDATA[&uuml; &uuml; in ein]]></description>
            <scope>local</scope>
            <gid>2000</gid>
        </group>

updated to 2.7 and don't see any errors

Actions

Also available in: Atom PDF