Load XML file to docker neo4j db

Hi!
I run the docker container with the following settings:

docker run \
    --publish=7474:7474 \
    --publish=7687:7687 \
    --volume="$(pwd)/neo4j/data:/data" \
    --volume="$(pwd)/neo4j/logs:/logs" \
    --volume="$(pwd)/neo4j/conf:/conf" \
    --volume="$(pwd)/neo4j/import:/import" \
    --volume="$(pwd)/neo4j/plugins:/plugins" \
    -e NEO4J_AUTH=none \
    -e NEO4J_PLUGINS='["graph-data-science", "apoc-extended", "apoc"]' \
    -e NEO4J_apoc_export_file_enabled=true \
    -e NEO4J_apoc_import_file_enabled=true \
    -e NEO4J_apoc_import_file_use__neo4j__config=true \
    neo4j

Then I put the xml file in the neo4j/import folder (relative to the place where the docker command is run).

In the neo4j browser UI, I run:

CALL apoc.load.xml("file:///test.xml")
YIELD value
RETURN value

But the error is returned:

Failed to invoke procedure `apoc.load.xml`: Caused by: java.io.IOException: Cannot open file /import/test.xml for reading.

What are the proper settings to read from xml file?

Interesting :thinking:

I wonder if this is caused by file permissions?
If you chmod a+r test.xml so that any user can read it, does neo4j still error?

There might also be more helpful logging in the debug log under $(pwd)/neo4j/logs