-
Notifications
You must be signed in to change notification settings - Fork 432
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
When annotating local documents, remove paths from public annotations #1661
Comments
Wondering if the path is perhaps good enough. It might be useful to still show filenames. UPDATED the issue name. |
Maybe we should retain the filenames, but don't expose them to anybody else, except the user who created the annotation? That would make it possible for him to access the document by clicking on the source link, but would hide it from others. (Who don't have access to the document either way.) |
See also some other ideas in #1664. |
@csillag rather than linking to a previous discussion could you update the description to include a summary rather than force someone landing on this issue to read through a discussion for context. |
Q: Is it necessary to keep the path for local files, for private annotations? Of course it is doable, I'm only asking if is it worth doing it? |
I've edited my last comment because I left out the key part from my question (That the question was referring to private annotations in local files) |
@dwhly: What do you think? |
Pros:
Cons:
I'd vote for stripping paths (not filenames)-- keeps things simple. |
The formatter function given to the bridge plugin is now guest.formatAnnotation() for better testability. If annotation.document.link exists, it is filtered, no hrefs starting with file:// protocol can get through to the sidebar. With this we do not store any local path. Fix #1661
An another question here. Where should we store the remaining filename? Currently, the document part looks like this:
First option: we can change the href with file URI scheme to only the filename Second option: we can change the annotator.document plugin to have a new field (maybe: 'filename') for collection the filenames for file URIs respectfully and storing it there. But does this seem useful for the Document plugin? Third option: Just store the filename in annotation.filename (a new field of our own). But it is a bit out of place. What do you think, which should be done? |
|
The discussion concluded with the resolution to remove the paths. Why do we need the filenames? Shouldn't the title of the PDF be enough for the user to identify it? Why store the filename at all? |
About filename, @dwhly mentioned in one of his comments (I just can't find it right now) that storing the filename would be good to search for the pdf name in the local file systems. Leaving the title does not grant this opportunity. |
As a case study, if I were a Mac user, the title would actually be sufficient. Spotlight will index the titles of PDFs, and I should be able to search for the title without ever knowing the filename. I consider filenames an implementation detail of filesystems. It's really a tragedy that as users we are ever still required to even be aware of such a thing. |
I have seen PDF files with empty or |
Here are a few of my reasons:
|
See previous discussion starting here.
The text was updated successfully, but these errors were encountered: