Skip to content

[Bug] /status.html endpoint fails when statusFilePath is not set #23809

@lhotari

Description

@lhotari

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

any released version

Minimal reproduce step

  1. set statusFilePath to empty in standalone.conf
  2. start pulsar standalone with bin/pulsar standalone
  3. go to http://localhost:8080/status.html (or use curl http://localhost:8080/status.html)

What did you expect to see?

that /status.html endpoint returns "OK" when statusFilePath is not set and the broker is ready.

What did you see instead?

The /status.html will always return 404 failure

Anything else?

There's also invalid default configuration in standalone.conf:

statusFilePath=/usr/local/apache/htdocs

This value doesn't make any sense. The default value should be empty (which results in null).

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions