Skip to content

fix(dev): stop a trailing comment becoming the RabbitMQ hostname (#7644) - #7645

Open
Sandy Ghs (sandyghs) wants to merge 2 commits into
mainfrom
fix/dev-properties-trailing-comment
Open

fix(dev): stop a trailing comment becoming the RabbitMQ hostname (#7644)#7645
Sandy Ghs (sandyghs) wants to merge 2 commits into
mainfrom
fix/dev-properties-trailing-comment

Conversation

@sandyghs

Copy link
Copy Markdown

.properties only treats # as a comment at the start of a line, so the note written after the value was parsed as part of it. A backend started from a fresh copy of this example dies with:

Caused by: java.net.UnknownHostException: host.docker.internal # you can also set it to localhost, but in case you wish to have injectors installed locally through your docker containers, you must use

README step 2 tells a new developer to copy this file verbatim, so every fresh environment hits it. The note moves above the property, and the value becomes localhost — the plain local run the README's minimal start describes.

Found while standing up a dev environment from scratch. Scanned the other *.properties.example files for the same shape: this was the only one.

Closes #7644

`.properties` only treats `#` as a comment at the start of a line, so the note
after the value was parsed as part of it and the backend died on startup with
`UnknownHostException: host.docker.internal # you can also set it to ...`.

README step 2 tells a new developer to copy this file verbatim, so every fresh
environment hits it. The note moves above the property.

Closes #7644

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation check — ✅ Passed

1 functional file(s), 0 doc file(s) changed.

No documentation gaps detected.

@Filigran-Automation Filigran Automation (Filigran-Automation) added the filigran team Item from the Filigran team. label Aug 28, 2026
# Set to localhost for a plain local run. Use host.docker.internal if you want
# injectors installed locally through your Docker containers to reach the broker;
# in that case, point that name at 127.0.0.1 in your /etc/hosts.
openaev.rabbitmq.hostname=localhost

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Developers run OpenAEV with injectors and collectors most of the time so having host.docker.internal in the first place make more sense.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — host.docker.internal is back as the default, and the fix now only targets the real bug

Review asks for host.docker.internal in first place, since developers usually
run with injectors and collectors. The defect this PR fixes is the trailing
comment, not the value, so the value goes back and the note moves above it.

The note now states the condition explicitly: the name does not resolve from
the host, so a backend run outside Docker needs it in /etc/hosts. Measured on a
clean macOS host — no /etc/hosts entry, DNS resolution fails — which is what
made the original one-line form fatal rather than merely wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

filigran team Item from the Filigran team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(dev-setup): application-dev.properties.example has a trailing comment that Spring reads as part of the RabbitMQ hostname

3 participants