Univention Bugzilla – Bug 29254
store returns html encoded values causing backend/frontend mismatch
Last modified: 2019-01-03 07:23:43 CET
An Bug #27189 ist aufgefallen, daß das Grid (oder der Store) die id HTML-encodiert, was dann die Verwendung (ohne entsprechendes dekodieren) zerstört. UVMM liest die Snapshots aus: # umc-command -U Administrator -P univention uvmm/snapshot/query -o 'domainURI=qemu://xen5.phahn.dev/system#35e24689-9d2c-ebfa-2109-52fbb4f4a73c' 16.11.12 09:49:11.249 DEBUG_INIT Response: COMMAND data length : 227 message length: 150 --- ARGUMENTS: uvmm/snapshot/query MIMETYPE : application/json STATUS : 200 MESSAGE : None RESULT : [{'time': '11/16/12 08:52:43', 'id': 'Bla & <test ;) > = " \' "', 'label': 'Bla & <test ;) > = " \' "'}] Soweit ist alles okay. Beim Aufruf von umc/js/uvmm/SnapshotGrid.js# _revertSnapshot(ids) bzw. #_deleteSnapshots(ids) wird dan allerdings als ids ["Bla & <test ;) > = " ' ""] übergeben, d.h. aus dem Grid kommt die id dann plötzlich HTML-encodiert. Das anschließende UVMM-Kommando scheitert dann natürlich, weil es die falschen Daten übergeben bekommt. Prinzipiell müsste das alle Stellen betreffen, in dem ein Grid benutzt wird, also nicht nur UVMM. Als Workaround wurden jetzt in UVMM & und < verboten, bis dieser Bug gefixt wurde.
*** Bug 26650 has been marked as a duplicate of this bug. ***
This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you.