Bug 1468912

Summary: & in a snapshot name causes it to display incorrectly
Product: [Community] Virtualization Tools Reporter: abenkovskii
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange, crobinso, gscrivan, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-10 21:52:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screanshot none

Description abenkovskii 2017-07-09 20:05:00 UTC
Created attachment 1295643 [details]
screanshot

Description of problem:
& in the snapshot name causes the name to be displayed incorrectly

Version-Release number of selected component (if applicable):
1.4.1

Steps to Reproduce:
1. Create a new qemu vm
2. Using virt-manager gui create a snapshot named "foo&bar"
3. Create another snapshot named "test"

Expected results:
The list of snapshots contains two entries: "foo&bar" and "test"

Actual results:
The names of both entries are displayed as "test" in the list

Additional info:
The name "foo&bar" is displayed correctly in the snapshot details

Comment 1 Cole Robinson 2017-07-10 21:52:21 UTC
Thanks for the report, fixed upstream now:

commit a51929fcd37790c3bde448893715d5c3c0dd29df (HEAD -> master)
Author: Cole Robinson <crobinso>
Date:   Mon Jul 10 17:51:04 2017 -0400

    snapshots: Handle XML chars in snapshot name (bz 1468912)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1468912