anshuwap / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Download File without Login #351

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Download file without login with direct link.

What is the expected output? What do you see instead?

User can't download the file without login... I want user only download the 
file when logged and not without logged. But, there's any way to set specific 
folder to be downloaded with and without login? 

What version of the product are you using? On what operating system?

mollify_1.8.6.1

Please provide any additional information below.

Is there any way to user with direct link will be redirected to login poage and 
not download the file (with direct link) without login?

Original issue reported on code.google.com by apriz...@gmail.com on 15 Jan 2012 at 2:30

GoogleCodeExporter commented 9 years ago
Not sure what you mean with direct link, in Mollify there's only public link, 
or with new share plugin, a share link.

But these links are meant to be public, ie no login. That's why this is hardly 
a bug.

However, share plugin will have in future an option to set password. Also I've 
considered option to restrict a share to be internal, ie you would have to be 
mollify user. But this option has many things to consider, like is it enough to 
restrict to any internal user? If not, how would a user define who can access, 
can Mollify show list of all users to anyone? I doubt this is good, so this is 
not that simple case.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 1:28

GoogleCodeExporter commented 9 years ago
Thanks Samuli!
But its a normal issue:

1-I login with my account;
2-I download any file;
3-I copy the link of download and send to someone;
4-This people is able to download the same file "without login credentials".

Thats normal or I am missing any special setting to not allow the download 
without login? 

Sorry the questions and I appreciatte your help.

Original comment by apriz...@gmail.com on 17 Jan 2012 at 1:42

GoogleCodeExporter commented 9 years ago
Oh you mean now it IS possible to download without login. That's another story, 
I'll check it.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 3:31

GoogleCodeExporter commented 9 years ago
Yep! Its possible download without login... If I download any file and send the 
link to someone, its possible make the download without redirect to login 
page... So, any guest is able to download any file since they have link (not 
necessary the public link) ;)

Thanks man!

Original comment by apriz...@gmail.com on 17 Jan 2012 at 4:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just example:
http://aprizion.com.br/_docs/backend/r.php/filesystem/4f14e5f4d2f03/?session=4e7
9a9029d38b8767aa8b3e247cdfeed

Try to download and you will see. You will be able to download. But, this is 
not my public link, ok? So will need to login to page. But, its not necessary 
(so, maybe a BUG, I think). let me know if I am wrong. Thxs.

Original comment by apriz...@gmail.com on 17 Jan 2012 at 4:13

GoogleCodeExporter commented 9 years ago
Ah, you kept the session id, of course it's valid. The url is internal url, 
meant only for you, don't share it. If you log out, this url should not work 
anymore.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 5:52

GoogleCodeExporter commented 9 years ago
Ahh ok! Thanks! You are the master!
I have only a last doubt (I promisse), how to send public link to another 
people... I have configured all other plugins (previewer and viewer), but I 
read the share settings plugin, and I dont know where put the code below (where 
is located the client settings)? I have no idea where add the code below...

<script type="text/javascript">
    mollify.init({
        "service-path": "backend/",
        "plugins": [
            new SharePlugin()
        ]
    });

Thanks  so much.

Original comment by apriz...@gmail.com on 17 Jan 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Actually no, there's something I have to check. My dev environment is not up so 
it takes a while.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 5:58

GoogleCodeExporter commented 9 years ago
Thanks. But the public link is working fine? Why I cant see the option? 

Original comment by apriz...@gmail.com on 17 Jan 2012 at 6:02

GoogleCodeExporter commented 9 years ago
Client settings go to the host page, ie index.html. You'll have already the 
mollify.init, just add the plugins part.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 6:06

GoogleCodeExporter commented 9 years ago
Works! Thanks so much! Have a nice day ;)

Original comment by apriz...@gmail.com on 17 Jan 2012 at 6:07

GoogleCodeExporter commented 9 years ago
Yes, everything seems to be ok here as well, just thought I should check 
something.

Original comment by samuli.j...@gmail.com on 17 Jan 2012 at 6:17

GoogleCodeExporter commented 9 years ago
Great! Thanks my friend!

Original comment by apriz...@gmail.com on 17 Jan 2012 at 6:19