Skip to content

Fix missing hostname when publishing via API#144

Merged
thebaer merged 2 commits intodevelopfrom
fix-api-missing-hostname
Aug 7, 2019
Merged

Fix missing hostname when publishing via API#144
thebaer merged 2 commits intodevelopfrom
fix-api-missing-hostname

Conversation

@thebaer
Copy link
Member

@thebaer thebaer commented Jul 22, 2019

This fixes a bug that occurred only when publishing via API and authenticating via token (rather than cookie). I noticed this while testing the new wf-cli.

Previously, the instance's hostname wouldn't be added to the Collection that got passed around after retrieving the owned post, meaning an incomplete URL was returned in the API response, and federation failed due to the missing host (and thus failed key lookup).

This fixes a bug that occurred only when publishing via API and
authenticating via token (rather than cookie).

Previously, the instance's hostname wouldn't be added to the Collection
that got passed around after retrieving the owned post, meaning an
incomplete URL was returned in the API response, and federation failed due
to the missing host.
@thebaer thebaer added this to the 0.11 milestone Jul 22, 2019
This is the crucial part where the hostName is needed for federation and
API clients. This change at least lets us know when we mess up like this
so the issue is easier to catch in the future.
@thebaer
Copy link
Member Author

thebaer commented Jul 29, 2019

Leaving this open for a bit longer while we test wf-cli.

@thebaer
Copy link
Member Author

thebaer commented Aug 7, 2019

Good to go now.

@thebaer thebaer merged commit ef4a5b2 into develop Aug 7, 2019
@thebaer thebaer deleted the fix-api-missing-hostname branch August 7, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant