Mobile uploads not counted in file quota

Bug #787301 reported by Dirk Meyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
Medium
Hugh Davenport

Bug Description

Files uploaded via MaharaDroid are not counted towards the file quota.

Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
importance: Undecided → Medium
status: New → Triaged
tags: added: maharadroid quota
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Dirk,

I have just tested this against master, I can upload a file, and my quota goes up by that amount.
When I add a file manually, it increases it to be the total of the upload and the mobile upload.
When i upload a file via mobile again it increases yet again.
When I delete a file, it goes down.

Can you give more details or maybe a screen shot of your files directory with a file in but quota of 0?

I was using maharadroid 1.6 (was in the app store), on android 2.2

Cheers,

Hugh

Changed in mahara:
status: Triaged → Incomplete
Revision history for this message
Dirk Meyer (dirkca68) wrote : Re: [Bug 787301] Re: Mobile uploads not counted in file quota

Hello Hugh,

2 screen shot are attached. I am using android 2.2.1 and maharadroid 1.6
from the app market. I reinstalled with a new copy today.

To describe screen shots:
Folder 1 also contains an image of 165k so together it should show 310k file
allocation (145k + 165k), not counting mobile uploads at all.
Before I took the screen shots, the file allocation was showing 1.5meg used
and after I deleted an image of size 900k or so, it now shows zero.

After I took the screen shots:
Adding a file manually increases the total to only what was uploaded
manually. Adding a second file manually, shows the correct usage for both
files but not what is already there. Adding via mobile now DOES count the
file properly and adds it up.

Then, I deleted every file and uploaded via mobile two files. The first file
it did not count but as soon as I uploaded the second file they added
together.

On Mon, May 23, 2011 at 9:18 PM, Hugh Davenport
<email address hidden>wrote:

> Hi Dirk,
>
> I have just tested this against master, I can upload a file, and my quota
> goes up by that amount.
> When I add a file manually, it increases it to be the total of the upload
> and the mobile upload.
> When i upload a file via mobile again it increases yet again.
> When I delete a file, it goes down.
>
> Can you give more details or maybe a screen shot of your files directory
> with a file in but quota of 0?
>
> I was using maharadroid 1.6 (was in the app store), on android 2.2
>
> Cheers,
>
> Hugh
>
>
> ** Changed in: mahara
> Status: Triaged => Incomplete
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/787301
>
> Title:
> Mobile uploads not counted in file quota
>
> Status in Mahara ePortfolio:
> Incomplete
>
> Bug description:
> Files uploaded via MaharaDroid are not counted towards the file quota.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/mahara/+bug/787301/+subscribe
>

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Dirk,

I have tried again and still can't reproduce.

What version of mahara are you using? master? or 1.3?

Would you be able to attach the files /artefact/file/mobileupload.php and /artefact/file/lib.php and /auth/user.php

From these files I can trace it and see why you don't seem to have your uploads counting.

Cheers,

Hugh

Revision history for this message
Dirk Meyer (dirkca68) wrote :
  • user.php Edit (45.0 KiB, application/x-httpd-php; name="user.php")
  • lib.php Edit (76.3 KiB, application/x-httpd-php; name="lib.php")
  • mobileupload.php Edit (3.9 KiB, application/x-httpd-php; name="mobileupload.php")

Hello Hugh,

the files are attached.

Somehow I don't think this is a mahara issue. When trying from one of our
schools today it worked perfectly, now from another location outside of
school, mobile uploads are not counted again. We are using an internal
network between schools and different school board. I noticed that we have a
timezone php error and cron is not running either. I am not sure these could
be related but my guess is our fedora box needs some more work and it would
not be the first time and so now a discussion on why this keeps occuring
will take place.
Thanks again,
Dirk

On Tue, May 24, 2011 at 4:02 PM, Hugh Davenport
<email address hidden>wrote:

> Hi Dirk,
>
> I have tried again and still can't reproduce.
>
> What version of mahara are you using? master? or 1.3?
>
> Would you be able to attach the files /artefact/file/mobileupload.php
> and /artefact/file/lib.php and /auth/user.php
>
> >From these files I can trace it and see why you don't seem to have your
> uploads counting.
>
> Cheers,
>
> Hugh
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/787301
>
> Title:
> Mobile uploads not counted in file quota
>
> Status in Mahara ePortfolio:
> Incomplete
>
> Bug description:
> Files uploaded via MaharaDroid are not counted towards the file quota.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/mahara/+bug/787301/+subscribe
>

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Yep, those files are exactly the same as those on master, so should work.

It seems odd that it works from within but not from without. From my look at the code the upload should either work, or fail. I don't see how you can get an upload to get sent but not trigger the quota stuff.

I'll mark this as invalid. If you manage to find out more what it causing this issue, either open this one back up or create a new bug depending on how similar it is to this description.

Cheers,

Hugh

Changed in mahara:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.