+ Post New Thread
Results 1 to 8 of 8
Virtual Learning Platforms Thread, Moodle SMB Web client 0 byte file size issue in Technical; I've got a problem with the moodle smb web client module. I get a list of all of the documents ...
  1. #1
    mwnci's Avatar
    Join Date
    Oct 2006
    Location
    Cornwall
    Posts
    92
    Thank Post
    5
    Thanked 24 Times in 17 Posts
    Rep Power
    20

    Moodle SMB Web client 0 byte file size issue

    I've got a problem with the moodle smb web client module. I get a list of all of the documents in the relevant folder, but when I download any file via the moodle block, the file size is always 0 bytes, and as such I cannot read or open any of my files.

    I am running Moodle 1.9.7. Has anyone got this module working on 1.9.7? Anyone having similar issues?
    Cheers

  2. #2

    Join Date
    Dec 2009
    Posts
    914
    Thank Post
    98
    Thanked 184 Times in 159 Posts
    Rep Power
    54
    We are having similar issues, I think it is a problem with that module specifically.

    We haven't had the time however to look into fixing the problem!!

  3. #3

    Join Date
    Apr 2009
    Location
    Stoke
    Posts
    81
    Thank Post
    24
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Well the problem is with folder downoad for us in IE and it is okay in Mozilla Fire fox.
    Check with different browsers and see if its working.

  4. #4
    mwnci's Avatar
    Join Date
    Oct 2006
    Location
    Cornwall
    Posts
    92
    Thank Post
    5
    Thanked 24 Times in 17 Posts
    Rep Power
    20
    Thanks for that - well I have tried in both IE8 and Firefox 3.6 and the problem occurs in both cases. I am able to upload a file successfully - and when I browse via windows explorer on my pc, the file is there and works, but I still cannot then view this new file via the module. It is listed, but when downloaded, has a file size of 0 bytes...

  5. #5

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,054
    Thank Post
    6
    Thanked 201 Times in 181 Posts
    Rep Power
    52
    I have found that on our Ubuntu box we had the same issue. Having read multiple threads and posts from everywhere around the web I found a work around which is not ideal but does work.

    The solution was to create a temporary area on the webserver which the smbclient block can use to write files to before allowing you to download them.

    Looking at my config file I have line 81 configured like this

    $smb_cfg->cfgCachePath = '/tmp/moodle/';

    This represents a potential security loophole, so make sure the permissions on the folder are set to read/right only with no execute permissions and that only apache (we're on Ubuntu so its www-data) can read and write to it. You will also need to setup a scheduled task to delete the files so the temporary area doesnt fill.

    Hope this helps you solve the problem.

  6. Thanks to Achandler from:

    mwnci (25th February 2010)

  7. #6
    mwnci's Avatar
    Join Date
    Oct 2006
    Location
    Cornwall
    Posts
    92
    Thank Post
    5
    Thanked 24 Times in 17 Posts
    Rep Power
    20
    Thanks for that fix - that works brilliantly! It's a shame that it is a bit of a security vulnerability, but hopefully this will be fixed properly further down the line with new releases of this module.

  8. #7
    mwnci's Avatar
    Join Date
    Oct 2006
    Location
    Cornwall
    Posts
    92
    Thank Post
    5
    Thanked 24 Times in 17 Posts
    Rep Power
    20
    As an update to this - I can really only get this working when the apache user has execute rights. Is there anything I can do to avoid this?

  9. #8

    Join Date
    Nov 2009
    Location
    Manchester
    Posts
    1,054
    Thank Post
    6
    Thanked 201 Times in 181 Posts
    Rep Power
    52
    I'm sure I haven't put execute rights in there i'll check when i get time.

SHARE:
+ Post New Thread

Similar Threads

  1. Moodle & SMB Web Client Problem
    By Marc in forum Virtual Learning Platforms
    Replies: 28
    Last Post: 23rd November 2009, 11:16 AM
  2. Moodle: SMB Web Client Issues
    By tdibb in forum Virtual Learning Platforms
    Replies: 10
    Last Post: 29th July 2009, 12:19 PM
  3. Moodle: SMB Web Client - HTTPS...
    By fabled-aesop in forum Virtual Learning Platforms
    Replies: 14
    Last Post: 17th March 2009, 04:27 PM
  4. Moodle & Windows Share Web Client
    By clodhopper in forum Virtual Learning Platforms
    Replies: 1
    Last Post: 12th March 2009, 10:43 PM
  5. [MS Office - 2007] The curious case of the 0-byte Excel file
    By AngryTechnician in forum Office Software
    Replies: 6
    Last Post: 24th February 2009, 06:09 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •