one icon indicating copy to clipboard operation
one copied to clipboard

XML containing single quotes in any attribute may break DB related tools

Open tinova opened this issue 8 years ago • 1 comments

Bug Report

Version of OpenNebula

  • [X] Development build

Component

  • [X] Upgrades

Description

For instance, vcenter premigrator for 5.4 breaks if a VM has a single quote in CONTEXT/PASSWORD

Things to check

  • fsck
  • premigrator

in general, look for @db.run commands

Expected Behavior

This should be handled in 'naked' sequel calls, like @db.run, where the input string is not escaped

Actual Behavior

Execution halts

How to reproduce

CONTEXT/PASSWORD="TRY'THIS"

Progress Status

  • [x] Branch created
  • [ ] Code committed to development branch
  • [ ] Testing - QA
  • [ ] Documentation
  • [ ] Release notes - resolved issues, compatibility, known issues
  • [ ] Code committed to upstream release/hotfix branches
  • [ ] Documentation committed to upstream release/hotfix branches

tinova avatar Apr 26 '18 16:04 tinova

We tried this with fsck and it works fine.

joseangelgm avatar May 25 '18 09:05 joseangelgm