core icon indicating copy to clipboard operation
core copied to clipboard

strange malfunction with username & password form for public ZIP-shares?

Open abstractmodel opened this issue 13 years ago • 7 comments

today some of my friends occupied me, that my links to my OC are broken...

i sayed WHAT?! thought, it was a new year's joke, but a few seconds later, i saw it with my eyes... :/

it seems to happen only w/ ZIP-files...

as long as i'm logged in, into my OC, the share-links are working pretty well, but as a public user (--> my friends) you will only see this during the loading of the page:

http://www.abload.de/img/zwischenablage013pu7k.png

after the loading is completed, the page returns the login-form:

http://www.abload.de/img/zwischenablage02ktuwy.png

it's not only to free (passwordless) shared ZIPs, it occurs to password-protected shared ZIPs too...

(sorry, if this issue is known, i didn't found it in the issue-list...)

abstractmodel avatar Jan 02 '13 16:01 abstractmodel

@abstractmodel Thx for reporting this, we have way too few IE testers, you could really help us here. Is the archive downloaded successfully before the user is redirected? Does it happen only in IE (Which browser version have you tried)? What version of owncloud are you using?

butonic avatar Jan 02 '13 17:01 butonic

just forgot to say, it's NOT related to IE. i just took the snaps from IE, because in FF i'm always logged in, into my OC... (i tested it: in FF it's the same...)

i'm using 4.5.5 - until v. 4.5.4 it worked perfectly...

and, the user can't download the file, because the loading time is (~ 99 % of all attempts) very, very fast, so, the "loading page" (1st. snap - had much luck to get this shot in that short time ;)) ) appears in under 1 second or so... after the page is loaded, the page get's locked and shows the login form...

abstractmodel avatar Jan 02 '13 17:01 abstractmodel

I also have this bug. I have tested it on windows and ubuntu and on five different browser. I have also tried to share a link to the directory containing the zip file. The link work, and it is possible to use the 'download' button on line at right in OC interface. But if (not using the download link) i clic on the zip filename, i am also redirected to login page.

If you need, i can make more test on it.

jrouland avatar Jan 04 '13 10:01 jrouland

Hi, I found this temporary solution: Modify the file "apps/files_sharing/js/public.js" using this patch:

--- public_ori.js   2013-01-08 16:22:56.000000000 +0100
+++ public.js   2013-01-08 16:37:31.000000000 +0100
@@ -23,7 +23,8 @@
                    $('table').remove();
                }
            } else {
-               action($('#filename').val());
+               if (mimetype.substr(mimetype.indexOf('/')+1) != 'zip')
+                   action($('#filename').val());
            }
        }
        FileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function(filename) {

marcolinuz avatar Jan 08 '13 16:01 marcolinuz

thank You.

is there a plan, when the next update is coming? and is this fix built in, in the next update?

abstractmodel avatar Jan 08 '13 16:01 abstractmodel

ok, great to hear 4.5.6 is out! but, is this prob solved by the update?

don't want to upload ver. 4.5.6 - and in case it is not ok ver. 4.5.4 - to my webspace, 'cause my internet connection is not tooo fast (and updater won't work in my OC)...

just looked at the changelog, but could'nt find any point related to that... except of "Interpret http 403 and 401 as not authorized in user_webdavauth" - well, if this is the point of making ZIP-shares working, i'll be happy, but i don't know?!

abstractmodel avatar Jan 22 '13 11:01 abstractmodel

duplicate of #1175 has been fixed with 4.5.6

DeepDiver1975 avatar Jan 22 '13 13:01 DeepDiver1975