-
-
Notifications
You must be signed in to change notification settings - Fork 651
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
Could it be possible to have a backup to store mind map on ownCloud ? #39
Comments
Hi there, as long as they have a reasonable API (and free accounts so I can actually test stuff), this should be doable. |
I have not seen the API, but you could find info at http://owncloud.org and http://api.owncloud.org. |
Looks like ownCloud uses a WebDAV API. This might work (will add generic WebDAV support to My Mind) as long as they correctly implement the CORS specification (if not, you will have to use the same domain for My Mind and ownCloud). |
I think the idea is to have My Mind and ownCloud in the same server, and maybe, if My Mind could be imported as an ownCloud app (see http://doc.owncloud.org/server/5.0/developer_manual/app/intro/createapp.html), that could be nice ! |
I am pretty certain people would appreciate using the hosted My Mind (at github) and saving to a local (or any other) ownCloud installation. The same way GDrive and Firebase backends work. |
WebDAV backend is done: eebc39c Please let me know if this works with an ownCloud backend. |
Great ! IO error: HTTP/501 <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> Their is an ownCloud demo test site at this address: http://demo.owncloud.org (user test, password test). Greetings, |
@nVir Thanks for a test. I am experiencing the same.
In the meantime, I made some improvements relevant to credentials handling, but this does not solve the two problems described above. |
I get the following 0 error in owncloud IO error: HTTP/0 |
HTTP/0 corresponds to interrupted request. Most probably a CORS-related issue (can be fixed only in OwnCloud). |
With owncloud at version 6.something it works fine. I used this URL: To save in a folder named "mind" in owncloud. It saves a file in native format with the default extension, based on the name in the root bubble. To load from owncloud, I use the same URL but add the filename at the end. And that works wonderfully. It asks for the owncloud username / password. Tada!!! Thanks - works fine. All I can think of to improve it would be to make a specific entry for owncloud webdav that would look for the server and filename. But the existing version works fine. |
It does not work with Nextcloud. The webdav link says |
Can you show a dump of HTTP requests related to saving your Mindmap to Nextcloud? |
I get this error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://domain.tld/remote.php/webdav/maps/My%20Mind%20Map.mymind. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). |
Okay, so this means that the remote side (your Nextcloud server) is not sending proper CORS headers. But you stated that you have both applications on the same domain? This looks like a cross-domain request. |
Yes |
For the purpose of the Origin check, As far as CORS support in Nextcloud is concerned, I have no idea. But it looks like someone already requested that: nextcloud/server#3131 |
Nice tool !
Instead of using GDrive, do you think that's could be possible to add a new backend which allow the user to edit from and store mind maps to ownCloud ?
Greetings,
Alain
The text was updated successfully, but these errors were encountered: