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

point organice to a read-only url, eg local file:// #940

Closed
ashmanskas opened this issue Jan 29, 2023 · 4 comments
Closed

point organice to a read-only url, eg local file:// #940

ashmanskas opened this issue Jan 29, 2023 · 4 comments

Comments

@ashmanskas
Copy link

ashmanskas commented Jan 29, 2023

I just gave organice a try, to see how handy it may be for letting me browse and search existing org content without editing it.

To do this, I wound up creating a gitlab repo, since my attempt to read via fastmail's webdav interface, as well as my attempt to read via local webdav, returned a failure message that didn't include any details; and I seldom use dropbox.

I think that for initially trying out organice on a desktop/laptop, it would be very handy to be able to point organice to a URL at which to find an org file, eg

https://raw.githubusercontent.com/xenodium/xenodium.github.io/master/index.org

or

file:///home/ashmansk/org/test.org

Alternatively, one could point to a directory, possibly containing .organice-config.json as well as a set of org files.

Is this a feature that would have wider appeal?

@munen
Copy link
Collaborator

munen commented Jan 29, 2023

Is this a feature that would have wider appeal?

Sure, apart from it not being technically possible.

However, there's ways to check out organice:

@munen munen closed this as completed Jan 29, 2023
@unhammer
Copy link

unhammer commented Feb 4, 2023

my attempt to read via fastmail's webdav interface, as well as my attempt to read via local webdav, returned a failure message that didn't include any details

Just tried fastmail, from the console log it seems fastmail's CORS policy stops it from being used by organice (you would need to access it from a browser that doesn't check CORS policies). Would be nice if organice mentioned the CORS failure, but maybe that's difficult to know from js.

@munen
Copy link
Collaborator

munen commented Feb 4, 2023

@unhammer There is extensive documentation on how WebDAV as a protocol works, including CORS: https://organice.200ok.ch/documentation.html#faq_webdav

@ashmanskas
Copy link
Author

The WebDAV/CORS documentation in the FAQ is indeed very extensive. I suppose the WebDAV failure message "There was an error retrieving files!" could potentially point the user to the excellent diagnostic suggestions at

https://organice.200ok.ch/documentation.html#faq_webdav

which do mention why "organice cannot show you a really semantic error message on" WebDAV access failures.

It seems the message is generated in 'getDirectoryListing', which is not specific to the WebDAV sync backend.

alert('There was an error retrieving files!');

@unhammer There is extensive documentation on how WebDAV as a protocol works, including CORS: https://organice.200ok.ch/documentation.html#faq_webdav

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

No branches or pull requests

3 participants