Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix owntracks topic in encrypted ios #19220

Merged
merged 2 commits into from
Dec 12, 2018
Merged

Fix owntracks topic in encrypted ios #19220

merged 2 commits into from
Dec 12, 2018

Conversation

balloob
Copy link
Member

@balloob balloob commented Dec 12, 2018

Description:

On iOS, the encrypted payload does not contain a topic. It is available in the decrypted payload.

This adjusts the check to not throw away the message if it's encrypted but process it instead. It will still attach the topic on encrypted messages if it's able to derive it from the Android headers (as Android never includes topic)

Thanks to @arsaboo and @bramkragten for helping with testing

Related issue (if applicable): fixes #18927

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@balloob balloob merged commit 7d9e257 into dev Dec 12, 2018
@ghost ghost removed the in progress label Dec 12, 2018
@delete-merged-branch delete-merged-branch bot deleted the fix-owntracks-topic branch December 12, 2018 16:17
balloob added a commit that referenced this pull request Dec 12, 2018
* Fix owntracks topic

* Warn if per-topic secret and using HTTP
@balloob balloob mentioned this pull request Dec 12, 2018
@raccettura
Copy link
Contributor

raccettura commented Dec 12, 2018

I bet this is my problem! For my debug attempt I decrypted it.

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.

Owntracks webhooks iOS getting 400 response
4 participants