Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 2 Oct 2014 04:55:12 +0400
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: Having trouble uploading to the wiki

Hi Robert,

On Wed, Oct 01, 2014 at 07:09:50PM -0400, Robert Harris wrote:
> I go to here to upload, as always:
> http://openwall.info/wiki/lib/exe/mediamanager.php?ns=john&edid=wiki__text

When I upload files to the wiki, I do so by clicking the picture icon
when editing a wiki page.  I am "unaware" of URLs like the above, and
you shouldn't need to be aware of that URL either.

OK, I've just checked - yes, the pop-up window with title "Media Files
[Openwall Community Wiki]" has the exact URL you mentioned.

> I attempt to upload the following file:
> John-the-Ripper-v1.8.0.2-bleeding-jumbo-2014-09-28-Win-x32.zip (38,447,718
> bytes)
> 
> It counts up to 100% percent for the first time, then it again counts up to
> 100% percent.  
> Then is shows failed.
> 
> (Why does it count twice?  I don't remember it doing that before.)

I think I haven't seen it display upload progress percentage at all.
Maybe this is somehow browser-specific.

> There are only two thing I can think of is that maybe I'm hitting some size
> limit or maybe the name is too long.
> Is there really a 50 M bit file limit, or is it less than advertised?

It may be less.  We have these PHP settings:

post_max_size = 50M
upload_max_filesize = 50M

and DokuWiki derives its reported file size limit from them as follows:

/**
 * Returns the size uploaded files may have
 *
 * This uses a conservative approach using the lowest number found
 * in any of the limiting ini settings
 *
 * @returns int size in bytes
 */
function media_getuploadsize(){
    $okay = 0;

    $post = (int) php_to_byte(@ini_get('post_max_size'));
    $suho = (int) php_to_byte(@ini_get('suhosin.post.max_value_length'));
    $upld = (int) php_to_byte(@ini_get('upload_max_filesize'));

    if($post && ($post < $okay || $okay == 0)) $okay = $post;
    if($suho && ($suho < $okay || $okay == 0)) $okay = $suho;
    if($upld && ($upld < $okay || $okay == 0)) $okay = $upld;

    return $okay;
}

I'm not familiar with PHP internals to tell if any encoding overhead is
counted against any of these limits.

> So, I made a copy of the above file and renamed it test.zip.  I attempted to
> upload this file. I get two 100%, then the failed error.

Try uploading a smaller file.  In fact, I'd prefer that you don't make
these builds that large.  Can you exclude the non-essential *.chr files,
like I do for official 1.8 tarballs?  Just refer to a separate archive
for those extras.

> Also the upload speed seems a little slow, I've got a pretty good upload
> speed.

Just how slow is it?  Maybe you're hitting a timeout.

Thanks,

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.