Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On Tue, Jul 23, 2013 at 7:02 AM, Florian Effenberger
<floeff@documentfoundation.org> wrote:
Hi,

Robinson Tryon wrote on 2013-07-23 00:25:

Sure -- this rule works on my test install. I put it into
owncloud/.htaccess, right after the 'RewriteEngine On' line:
RewriteRule ^shared(.*)$
public.php?service=files&t=4d2820b4fad6eac0b7624f88e01bdc53&path=/$1
[L]


thanks a lot, just done so!
Am I right that this will only give pretty URLs to the folder shared by you,
as that ID is attached to you?

Yes, I believe so. Others may share other files and folders, but we
don't have a generic method of providing pretty urls for any arbitrary
hash. Of course, pretty much all content will live under the SHARED
folder, so it does cover most use cases.

Couple of notes:

- If the hash changes (e.g. a new install, etc..) it'd have to be updated

There might be a way of making a plugin/extension that just provides a
read-only link to a SHARED/ folder (a bit cleaner, but would probably
require a bit of code to be written).

- Ordinary users can provide anonymous upload rights via a link

I don't think this is generally a problem, especially if it's just
upload to a particular folder and not edit/delete rights, but it's
something we should test out.

- Sharing a pretty URL could be easier

If one navigates to a folder under SHARED like QA/BSA, there are
options to share a link, but those options are designed for
compartmentalization and allowing narrow access -- great things for
personal data, but not what we want here :-)

What one can do is take a URL like:
https://owncloud.documentfoundation.org/index.php/apps/files?dir=/SHARED/QA/BSA

and change it manually to:
https://owncloud.documentfoundation.org/shared/QA/BSA

The easiest fix would probably be to add a new link "Public URL" to
the file/folder-level options (currently: Rename, Download, Versions,
Share) that would properly-format a publicly-accessible url.

Cheers,
--R

-- 
To unsubscribe e-mail to: website+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.