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

Could it be possible to have a backup to store mind map on ownCloud ? #39

Closed
nVir opened this issue Jan 30, 2014 · 17 comments
Closed

Could it be possible to have a backup to store mind map on ownCloud ? #39

nVir opened this issue Jan 30, 2014 · 17 comments

Comments

@nVir
Copy link

nVir commented Jan 30, 2014

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

@ondras
Copy link
Owner

ondras commented Jan 30, 2014

Hi there,

as long as they have a reasonable API (and free accounts so I can actually test stuff), this should be doable.

@nVir
Copy link
Author

nVir commented Jan 30, 2014

I have not seen the API, but you could find info at http://owncloud.org and http://api.owncloud.org.

@ondras
Copy link
Owner

ondras commented Jan 30, 2014

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).

@nVir
Copy link
Author

nVir commented Jan 30, 2014

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 !

@ondras
Copy link
Owner

ondras commented Jan 30, 2014

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.

@ondras
Copy link
Owner

ondras commented Feb 5, 2014

WebDAV backend is done: eebc39c

Please let me know if this works with an ownCloud backend.

@nVir
Copy link
Author

nVir commented Feb 6, 2014

Great !
I have some tests saving to the URL: http://demo.owncloud.org/remote.php/webdav/my-mind-map, but I get the following 501 error:

IO error: HTTP/501

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre_DAV_Exception_NotImplemented/s:exception
<s:message>There was no handler found for this "POST" method/s:message
<s:sabredav-version>1.7.6/s:sabredav-version
/d:error

Their is an ownCloud demo test site at this address: http://demo.owncloud.org (user test, password test).

Greetings,
Alain

@ondras
Copy link
Owner

ondras commented Feb 6, 2014

@nVir Thanks for a test.

I am experiencing the same.

  1. saving returns HTTP/501. I believe this might be their own issue; would you mind filing an issue against ownCloud, linking to this one?

  2. loading files does not work due to ownCloud not respecting the CORS headers. Again, I believe this is their fault.

In the meantime, I made some improvements relevant to credentials handling, but this does not solve the two problems described above.

@letsgo008
Copy link

I get the following 0 error in owncloud

IO error: HTTP/0

@ondras
Copy link
Owner

ondras commented Apr 25, 2014

HTTP/0 corresponds to interrupted request. Most probably a CORS-related issue (can be fixed only in OwnCloud).

@anguscarr
Copy link

With owncloud at version 6.something it works fine.

I used this URL:
https://owncloud.example.org/owncloud/remote.php/webdav/mind

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.
To link to a mindmao already saved, I use the following URL:
https://owncloud.example.org/mind/?url=https%3A%2F%2Fowncloud.example.org%2Fowncloud%2Fremote.php%2Fwebdav%2Fmind%2FDemonstration.mymind

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.

@anmol26s
Copy link

It does not work with Nextcloud. The webdav link says This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client. I have both nextcloud and my-mind on the same domain.

@ondras
Copy link
Owner

ondras commented Nov 21, 2017

Can you show a dump of HTTP requests related to saving your Mindmap to Nextcloud?

@anmol26s
Copy link

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).

@ondras
Copy link
Owner

ondras commented Nov 26, 2017

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.

@anmol26s
Copy link

Yes
nextcloud is on nextcloud.domain.tld and mindmap is on map.domain.tld . Can I set CORS in nextcloud?

@ondras
Copy link
Owner

ondras commented Nov 26, 2017

For the purpose of the Origin check, nextcloud.domain.tld and map.domain.tld are different domains.

As far as CORS support in Nextcloud is concerned, I have no idea. But it looks like someone already requested that: nextcloud/server#3131

@ondras ondras closed this as completed Oct 30, 2021
ondras added a commit that referenced this issue Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants