sciactive / nephele Goto Github PK
View Code? Open in Web Editor NEWA pluggable WebDAV, CardDAV, and CalDAV server for Node.js and Express.
License: Apache License 2.0
A pluggable WebDAV, CardDAV, and CalDAV server for Node.js and Express.
License: Apache License 2.0
If a file fails to upload, and ends up in a partially uploaded state, then the adapter never chown
s it to the user, meaning it is not writable by the user.
Hi, first off, thanks for the great module!
The code works fine when mounted on /
.
I was trying to mount nephele in a subpath on express:
app.use('/webdav', nephele({
adapter: new FileSystemAdapter({
root: '/data/root/',
}),
authenticator: new InsecureAuthenticator(),
})
};
This in turn will, as expected, hit https://github.com/sciactive/nephele/blob/master/packages/adapter-file-system/src/Adapter.ts#L87 in various places.
The issue is, that the url in express.js would already have the mountpoint (ie baseurl) removed from the path when hitting nephele. So the check for path having baseUrl fails. Skipping that prefix check and also removing the subsequent .substring(decodeURIComponent(baseUrl.pathname).length)
will fix the issue.
Further code handles listing and at least retrieving files and contents fine, but after some debugging, I couldn't quite find how the absolute paths (which are wrong, as they contain the mountpoint) are constructed. Writing files does not work as the absolute path ends up being wrong.
Maybe I am hitting some unsupported path here, but should nephele work with the filesystem adapter on an express mountpoint in the first place?
Happy to do further debugging if this is not easily reproducible or I have some more pointers in the right direction.
I am able to connect with nephele
using a simple test client with webdav
package.
However, trying to publish an Outlook calendar with Outlook's Publish to WebDAV
feature, the connect could not be established.
Currently, locks are copied and moved with resources. This goes against the spec.
I'm currently using webdav-server but I'm facing problems when passing a direct dl link connected to a file. If the file is too big, the stream is loaded into memory and it breaks. I assume the issue lies in the fact that its trying to load a huge amount of data into memory. My biggest problem is media files such as MP4 etc.
Just wondering if there's a way to only load parts of what the user requested, if its a media file for example?
And is this doable in nephele?
I tried all variances of using AUTH=false
, by docker-compose.yaml
, inline docker run command, S3 storage, normal storage,... but it does not seems to work.
Setting AUTH_USERNAME
or using .htpasswd
does work normally.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.