Skip to content

Fail on missing body factory#6232

Closed
shinrich wants to merge 1 commit intoapache:masterfrom
shinrich:fatal-on-missing-bodyfactory
Closed

Fail on missing body factory#6232
shinrich wants to merge 1 commit intoapache:masterfrom
shinrich:fatal-on-missing-bodyfactory

Conversation

@shinrich
Copy link
Copy Markdown
Member

This is an alternative fix to issue #5102. My preferred fix is in PR #6203. But if we do want to keep the template_sets_dir relative to the configuration directory rather than the install directory, this PR will fail if the body_factory cannot be loaded and the PR updates the documentation for the setting to reflect the new relative base path.

@shinrich shinrich added this to the 10.0.0 milestone Nov 26, 2019
@shinrich shinrich self-assigned this Nov 26, 2019
@shinrich
Copy link
Copy Markdown
Member Author

[approve ci centos]

Copy link
Copy Markdown
Contributor

@bneradt bneradt left a comment

Choose a reason for hiding this comment

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

Looks good.

Warning("Unable to access() directory '%s': %d, %s", (const char *)directory_of_template_sets, errno, strerror(errno));
Warning(" Please set 'proxy.config.body_factory.template_sets_dir' ");
Fatal("Unable to access() directory '%s': %d, %s. Please set 'proxy.config.body_factory.template_sets_dir' ",
(const char *)directory_of_template_sets, errno, strerror(errno));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think .get() can work here instead of the cast:

directory_of_template_sets.get(), errno, ...

@shinrich
Copy link
Copy Markdown
Member Author

Closing this in deference to PR #6203. In our hack-a-thon meeting today, the consensus was that this was the preferred approach to the issue.

@shinrich shinrich closed this May 20, 2020
@zwoop zwoop removed this from the 10.0.0 milestone May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants