Custom APP_LOG paths containing spaces are split into separate Java arguments
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with apollo-adminservice/src/main/scripts/startup.sh, especially the JAVA_OPTS construction near line 56 and its expansion near lines 186–188. Reproduce the issue with the Java stub command in the report, then inspect the configservice and portal startup scripts for the same pattern. Done when an APP_LOG path containing spaces reaches Java as one complete logging property argument and the related scripts handle it consistently.
Written by the indexing model from the issue text.
Description
Hullo folks,
I'm doing some research for Tessl Code Review and we ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
Describe the bug
An APP_LOG path containing a space is split when the startup script invokes Java. For example, /tmp/apollo-argv/my app.log reaches Java as -Dlogging.file.name=/tmp/apollo-argv/my followed by a separate app.log argument.
The setting is appended to the string-valued JAVA_OPTS, which is later expanded unquoted. Java should receive the complete logging property as one argument. The separate non-option argument can instead be treated as a main-class name, preventing startup.
To reproduce
From the repository root, use an argument-printing Java stub to inspect the real startup script without starting a server:
repro_dir=$(mktemp -d)
mkdir -p "$repro_dir/jdk/bin"
cat > "$repro_dir/jdk/bin/java" <<'JAVA'
#!/bin/bash
if [[ "$1" == "-version" ]]; then
echo 'openjdk version "17.0.1"' >&2
exit 0
fi
printf '<%s>\n' "$@"
JAVA
chmod +x "$repro_dir/jdk/bin/java"
JAVA_HOME="$repro_dir/jdk" LOG_DIR="$repro_dir/logs" \
APP_LOG="$repro_dir/my app.log" APOLLO_RUN_MODE=Docker JAVA_OPTS= \
bash apollo-adminservice/src/main/scripts/startup.sh
The output contains two arguments:
<-Dlogging.file.name=.../my>
<app.log>
Changing only APP_LOG to $repro_dir/app.log produces one complete property argument.
Additional details and logs
Codex ran both cases against 69a2b1fc0ef43744f9357b07ad1912c54981b38c on macOS arm64 with Bash. This validates the argument construction, not a full Apollo/JVM deployment. The configservice and portal scripts have the same string expansion pattern by source inspection. I found no matching issue or open PR; this remains after #5682.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Baptiste
- Dominant language
- Java
- Stars
- 29.8k
- Forks
- 10.1k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apolloconfig/apollo
-
area/configservice area/security need investigation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apolloconfig/apollo#5661 · 2 comments ·
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
apolloconfig/apollo#5728 ·
Maintainers usually reply within 2 days
-
agentic-workflows
Difficulty 5/5 Over a week Newbie friendliness 1/100
apolloconfig/apollo#5727 ·
Maintainers usually reply within 2 days
-
area/configservice kind/question stale
Difficulty 4/5 3-5 days Newbie friendliness 48/100
apolloconfig/apollo#5698 · 6 comments ·
Maintainers usually reply within 2 days
-
删除private命名空间的问题Openarea/portal bug kind/report-problem
Difficulty 4/5 3-5 days Newbie friendliness 45/100
apolloconfig/apollo#5683 · 3 comments ·
Maintainers usually reply within 2 days
All issues in apolloconfig/apollo
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Spare PermissionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainers usually reply within 1 day
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPossibly taken @CryoThrust claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
langchain4j/langchain4j#7320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
adobe/aem-core-cif-components#1109 ·
-
Bug: Minor Status: Triage
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
GTNewHorizons/GT-New-Horizons-Modpack#27886 · 1 comment ·
Maintainers usually reply within 1 day