Active
Project:
SWFUpload
Version:
6.x-2.0-beta8
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 May 2010 at 14:03 UTC
Updated:
22 Mar 2011 at 10:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
aaron commentedhere's a patch for more useful error messages, btw.
Comment #2
aaron commentedLooking at the logs, I now see: access denied for swfupload. Oddly, it's displayed for the Anonymous user, even though I'm authenticated with an admin account with the new required access.
Comment #3
aaron commentedsame behavior with the super user.
Comment #4
aaron commentedseems to be an issue with swfupload_access(). return TRUE allows the upload to progress.
Comment #5
skilip commentedDid you try to enable debug modus for the SWFUpload library? I'm wondering which http error number is returned.
$settings['swfupload_settings'][$element['#id']] = array(
'debug' => TRUE,
....
);
Comment #6
aaron commentedseems to be at
from a dpm(), it looks like $p is an empty object, thus there is no ->op.
Comment #7
aaron commentedrather it's not: watchdog printing of $p returns:
fwiw
Comment #8
aaron commentedit's http error 403
Comment #9
skilip commentedhttp://swfupload.org/forum/generaldiscussion/176
Comment #10
aaron commentedok, digging further, the session id of d41d8cd98f00b204e9800998ecf8427e (after that's been decoded) does not exist for uid 1. curiouser and curiouser...
Comment #11
aaron commentedno, skilip, that's not the issue: if i return TRUE in swfupload_access(), everything seems to work. the issue seems to be that an incorrect sid is being set somewhere.
Comment #12
aaron commentedoddly, it seems to be trying for that same unique sid even if i log out and in as another user... the uid is correct in that case, but the sid is not...
Comment #13
aaron commentedthe issue is that at _post_key(), my $user has no ->sid, so it's being set with the $_SERVER['REMOTE_ADDR']. which, of course, fails when later it's checking that against the sessions table...
Comment #14
aaron commentedthis fixes that condition.
Comment #15
aaron commentedi'd also suggest the patch at #1, which would make it more useful for admins attempting to debug a problem their users report. slightly easier to have more information for an otherwise hard failure, especially since the alternative is to hack the module to enable debug mode.
Comment #16
eugenmayer commentediam not sure this is related to
http://drupal.org/node/799444
we should probably use the drupal core method to restore the session, see
http://github.com/EugenMayer/drupalwiki_multiupload/blob/master/drupalwi...
especially the session_sid($sid) is importnat, otherwise you will get problems verifying form tokens.
Comment #17
eugenmayer commentedAny opinion here Philip?
Comment #18
eugenmayer commentedchecked in the fix here http://github.com/EugenMayer/swfupload/tree/796916
only added this ( as this can be out of sync )
to be sure toke validations are working ( keeping both sid and sessed_id in sync )
yes, we have to places where we store the curent sid, user->sid, and session_id. While nearly anthing is using user->sid, form token validation is ussing session_id...well this gives you hard time to debug :)
Comment #19
eugenmayer commentedmerged into dev
Comment #20
eugenmayer commentedComment #21
eugenmayer commentedfixed in BETA6
Comment #22
pixelsweatshop commentedStill getting this in beta6
Comment #24
YNWA commentedHi everybody!
I'm using version 6.x-2.0-beta8 and I still have 403 error because of wrong SID. Please, help me, what should I place into swfupload_upload_access() to avoid this error?