webDAV Path too deep?

webDAV Path too deep?

by Steve Bilton -
Number of replies: 3

Hi,

I'm using webDAV  and having problems with files that are 'too deep' within a directory structure. It seems I can only link to files that are 1 level deep, anything deeper just outputs errors like so :

Using Path: /NEBOSH-NDip/mp3/

ERROR: Invalid JSON string

Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
Warning: fread(): Length parameter must be greater than 0 in /u0/webroot/virtual/www.hsetraining.ae/www/lib/webdavlib.php on line 1395
XML error: > required at line 109

Path: /NEBOSH-NDip/mp3/    - navigating here outputs the above error!
The file I wanted to find was located at:
Path: /mp3/UNIT_A/A1/01_Diploma_A1.mp3

I've performed a few tests to see if there's a string problem with file/directory names by moving the files locations around, using upper/lower case, using numbers/regular chars in the directory naming etc.

 

The results of my tests showed the flowing:
These paths to files all work. You will notice they are only 1 directory deep.

Path: /mp3/01_Diploma_A1.mp3
Path: /ndip/01_Diploma_A1.mp3
Path: /ndip/02_Diploma_A1.mp3
Path: /videos/A5_Safety_culture.flv  

##############################


The below paths DO NOT work - You will notice these paths are all more than 1 directory deep.

trying to link to mp3 files types... could not get past the following structure level.

  • Using Path:/mp3/UNIT_A/test/
  • Path:/mp3/UNITA/A1/
  • Path:/mp3/ndip/a1/
  • Path: /ndip/a1/
  • Path:/ndip/1/

 

trying with flv file types... again cannot go deeper than 1 directory

  • Path: /videos/videos/

Has anyone else expierienced this issue? or can shed any light on how to resolve this problem?


Thank you for any input!
Cheers

Steve

Average of ratings: -
In reply to Steve Bilton

Re: webDAV Path too deep?

by Steve Bilton -
Hi, It seems this issue is related to this BUG: http://tracker.moodle.org/browse/MDL-30154 I'm using moodle version Moodle 2.2.3+ (Build: 20120612) so I think I'll be upgrading to Moodle 2.3.3 and see if this resolves the problem. Fingers crossed!! Cheers Steve
In reply to Steve Bilton

Re: webDAV Path too deep?

by Steve Bilton -

Upgrading to 2.3.3 Moodle fixed the issue entirely!

The file picker now shows nice icons for different file types too, which is nice.

The only feature I'm missing now is to be able to multi-select items/files to add to a 'Directory' resource.

I have 2000+ mp3's (116 hours of listening) for just one course - adding these one-by-one to a directory is going to take a very long time.

Does any one know a quicker way?

 

Thanks

Steve

In reply to Steve Bilton

Re: webDAV Path too deep?

by andrewop pit -

Hello

you can also use long path tool to solve your problem


_________________________