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

app: add initial webdav support #1633

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MichaHoffmann
Copy link
Member

@MichaHoffmann MichaHoffmann commented Dec 28, 2022

This PR adds WebDAV support for perkeep as an app.

Its read only, but thats something i intend to fix.

I tested this with cadaver locally for now.

@tgulacsi you suggested this in the past, so tagging you here. wdyt?

addresses #38 #1392 #1017

@MichaHoffmann
Copy link
Member Author

Tests fail because i used go1.17 api in places. Fixing in a bit.

@MichaHoffmann MichaHoffmann force-pushed the mhoffm-add-webdav-app branch 4 times, most recently from 1c47f41 to e939d89 Compare December 28, 2022 22:58
app/webdav/webdav.go Outdated Show resolved Hide resolved
app/webdav/webdav.go Outdated Show resolved Hide resolved
app/webdav/webdav.go Outdated Show resolved Hide resolved
Copy link

@Serpentiel Serpentiel left a comment

Choose a reason for hiding this comment

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

lgtm

@MichaHoffmann MichaHoffmann force-pushed the mhoffm-add-webdav-app branch 4 times, most recently from e775408 to 9f4d499 Compare January 6, 2023 15:06
Some adaptations had to be made to make perkeepd in `world` be able to
start the webdav app.

* blobstorage handler is expected to be named `bs-recv` for serverinit/devmode.go
* server url needs to be known for the app so that it can fetch its config

To facilitate the second point the start up logic in world.go was
adapted to try starting on a random port, the resulting flakiness should
be acceptable. Obsolete code after this was cleaned up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants