May 4, 20179 yr Description: When passing through a host path containing an ampersand, simpleXML is messing up. Tested on 6.3.3, but probably affects all unRaid versions going back to the start of the Aztec calendar. (or at least 6.0+ ) (Using /this & that mapped to /test) Warning: SimpleXMLElement::addChild(): unterminated entity reference that/ in /usr/local/emhttp/plugins/dynamix.docker.manager/include/CreateDocker.php on line 211 Command:root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="Krusader" --net="bridge" -e TZ="America/New_York" -e HOST_OS="unRAID" -e "WIDTH"="1420" -e "HEIGHT"="720" -p 8080:8080/tcp -v "/mnt/user/":"/UNRAID":rw -v "/mnt/user/appdata/krusader/":"/nobody/.kde":rw -v "":"/test":rw sparklyballs/krusader How to reproduce: Create a share with an & in the path, and pass it through to the container Expected results: dockerMan should not return any errors Actual results: See above Other information: I also tried subsituting in the host path & for the heck of it with zero change. Edited May 4, 20179 yr by Squid
May 4, 20179 yr Author 6 minutes ago, bonienl said: Yeah that sign is easily mistaken in the old days... XML expects & I also tried & in the path... Remote, so couldn't easily look at the generated XML files though.
May 4, 20179 yr Author And to help narrow it all down, the legacy section of the XML is correct: <Volume> <HostDir>/mnt/user/this & that/</HostDir> <ContainerDir>/test</ContainerDir> <Mode>rw</Mode> </Volume> But the v2 section is trashed because the simpleXML error wasn't fatal. <Config Name="Host Path 3" Target="/test" Default="" Mode="rw" Description="Container Path: /test" Type="Path" Display="always" Required="false" Mask="false"/> ( And the same error pops up again if you manually set the Default to be /mnt/user/this & that
Archived
This topic is now archived and is closed to further replies.