Skip to content

Conversation

ahti
Copy link
Contributor

@ahti ahti commented Jun 24, 2025

This allows --enable-webdav and --no-symlinks to be used together, and adds the necessary filtering.

@ahti ahti force-pushed the webdav-symlinks branch 2 times, most recently from c9df1b1 to 66d855f Compare June 25, 2025 02:05
@ahti ahti force-pushed the webdav-symlinks branch from 66d855f to 5946664 Compare June 25, 2025 02:14
Copy link
Owner

@svenstaro svenstaro left a comment

Choose a reason for hiding this comment

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

Almost there!

}
Box::pin(async move {
if !self.is_path_allowed(path).await {
return Err(DavFsError::NotFound);
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe log something here so it's a bit easier to debug?

} else {
Box::pin(ready(Err(DavFsError::NotFound)))
}
Box::pin(async move {
Copy link
Owner

Choose a reason for hiding this comment

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

So many pins D:

}
Some(Ok(e))
}
Err(e) => Some(Err(e)),
Copy link
Owner

Choose a reason for hiding this comment

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

Hmmm is this right? Won't this result in weird entries? Also, should we log here?

}
Box::pin(async move {
if !self.is_path_allowed(path).await {
Err(DavFsError::NotFound)
Copy link
Owner

Choose a reason for hiding this comment

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

Maybe log something here?

@svenstaro svenstaro merged commit a343505 into svenstaro:master Jun 27, 2025
17 checks passed
svenstaro added a commit that referenced this pull request Jun 27, 2025
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.

2 participants