Hi,
I have a problem with accessing bitcache streams. I have two Drupal installations, one on our server i a Linux box and another one on my laptop running Windows XP SP3. Also, I have installed fileframework module. So I am able to upload files in the both installations. But the problem is with Linux box - I cannot download files - the browser shows only "403 Forbidden" and nothing more. This is not the case with the installation working under Windows. I am able to download and view files - text files, Word, Excel, PDF e tc without any problem.

I checked permissions of the directories under Linux, all is OK - the directories were write enabled, the streams were uploaded there and so. Also, I am able to view stream information (that is kept in the database). I suppose that this is not Apache/Linux problem with permissions but something in Drupal. This is a paradox: I am able to create and delete streams, but cannot read them. Why? I don't know where to look for solution, so some pointers here would be welcome.

I am using bitcache module 6.x-1.0-beta2 (http://drupal.org/project/bitcache) and 6.x-1.0-alpha4 (http://drupal.org/project/fileframework).

Ivan

Comments

phow’s picture

Hi - same problem here, single server single site. I can upload files (they are now defaulting to the "Default" database repository - how do I change it back to using the "Default (File System)" btw?) and attach them to nodes, but when trying to access the content I receive a 403 forbidden message. This occurs whether downloading / accessing from the node, or when trying to directly download using "bitcache/guid...."

I can go directly to admin/content/bitcache and see all of my uploaded guids... they appear to be present in the database...

Seems there is some new code in the overloaded 'allow' function of the Bitstream Server class. I removed the check for allowable bitstream features and downloads seem to be back now.

In the bitcache module (sites/all/modules/bitcache) in the 'bitcache.server.inc' file, find the line (around 106) and comment out the if statement like I did below (add the // to the beginning of the line).

//if (($method != 'HEAD' && empty($methods[strtolower($method)])) || ($method == 'HEAD' && empty($methods['get']))) {
    //return FALSE;
//}

I'm not sure if this will have an impact on security? The check was not there in the last revision of bitcache so I'm not sure... Might be wise to check with the folks who develop bitcache and are more familiar with how it works...

Hope this helps,
Pete.

jwalkerbg’s picture

Hi,

I commented these lines and it has worked now. Downloads are possible. Hmmm... nevertheless I would wait some time for an input from developers.

v8powerage’s picture

I commented those lines, but completely nothing happenned :/

Also I don't have any http://mysite/bitcache/guid paths, mine looks like this one below:

http://mysite/bitcache/0e95bd723f7737e4579bb01bea1de2245442244f?vid=8326&disposition=inline&op=view

thekevinday’s picture