[6.3.3] Docker Cannot use & in a host path

4 posts in this topic Last Reply

Recommended Posts

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 by Squid
Link to post
6 minutes ago, bonienl said:

Yeah that sign is easily mistaken in the old days... :D


Afbeeldingsresultaat voor aztec script


XML expects &

I also tried & in the path...  Remote, so couldn't easily look at the generated XML files though.

Link to post

And to help narrow it all down, the legacy section of the XML is correct:


      <HostDir>/mnt/user/this &amp; that/</HostDir>

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 &amp; that

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.