xapi-project/sm — pull request #44 by rdobson (2013-10-18 16:42:02+00:00)
Title: CA-118899: Explicit encoding of iSCSI target name to enable support for UTF-8 iSCSI target names.

Having investigated whether SM supports UTF-8 characters in the iSCSI target name, I've identified a bug in how we handle the 'targetIQN' string passed into the ISCSI class.

I believe fixing the encoding at this point, rather than at the various uses of the string, is the most efficient fix - but equally, the user of such a string could be educated to ensure that the strings it is compiling for re (or other) are of the appropriate format.

I've tested that this fix allows me to add, use, destroy, forget SRs with UTF-8 chars in the target iSCSI name.

Signed-off-by: Rob Dobson