Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bricolage-Bugs] [Bug 96] New: file upload problems, error thrown by mk_path

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bricolage-bugzilla

Feb 12, 2002, 7:39 AM

Post #1 of 1 (438 views)
Permalink
[Bricolage-Bugs] [Bug 96] New: file upload problems, error thrown by mk_path

Summary: file upload problems, error thrown by mk_path
Product: Bricolage
Version: 1.2.0 - Current Release
Platform: IE 5
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Media Profile
AssignedTo: dw [at] dnai
ReportedBy: slattery [at] angel


Hello, and thank you in advance. I am very impressed by bricolage.

Description
-----------

I am stumped. Everytime I attempt to upload to a new media record I get
a permissions error. It seems to be a bogus error. Could it be a zero
length error? I tried this with the stock 1.2.0 tarball and then I updated
from CVS using the Release_1_2 branch, adding Apache::* modules as
needed.

After filling out the form at "New Media" link <http://localhost/widgets/
wrappers/sharky/sideNav.mc?uri=/workflow/profile/media/1033/&rnd=
1013541649#>
)
I save the record, then get the screen that asks for more detail, including
an uploaded file.

Everytime I ask to upload a file in my browser, I get the following error:

Error Message
-------------

[Tue Feb 12 19:39:09 2002] [error] [client 66.65.12.26] Error creating path /
usr/local/bricolage/comp/data/media/1033/0.: mkdir :: Permission denied
at /usr/local/bricolage/lib/Bric/Util/Trans/FS.pm line 581

But the permissions are very open here for the httpd user, which is the
user in control of Apache. (I added $< and $> to the error message on
582 at one point to make sure, and this user is running the process)

permissions
------------
/usr/local/bricolage/mike# ls -l /usr/local/bricolage/comp/data/media
total 16
drwxrwxr_x 4 httpd httpd 4096 Feb 12 14:18 .
drwxrwxr_x 4 httpd httpd 4096 Feb 12 00:15 ..
drwx------ 3 httpd httpd 4096 Feb 12 14:18 mike_test

/usr/local/bricolage/mike# ls -ltra /tmp/usr/local/bricolage
total 12
drwx------ 3 httpd httpd 4096 Feb 12 14:45 data
drwx------ 3 httpd httpd 4096 Feb 12 14:45 ..
drwx------ 3 httpd httpd 4096 Feb 12 14:45 .


I created a quick script and ran the script as httpd, and it works...

working script (run as httpd)
-------------------------------
#!/usr/bin/perl

BEGIN { push @INC, '../lib'; };
use Bric::Util::Trans::FS;
$path = "/usr/local/bricolage/comp/data/media/mike_test/0/0/1";
my $fs = Bric::Util::Trans::FS->new;
$fs->mk_path($path) || die $!;
exit 0;



restart statement
------------------
[Tue Feb 12 15:14:38 2002] [notice] caught SIGTERM, shutting down
[Tue Feb 12 15:15:26 2002] [info] created shared memory segment
#31235
[Tue Feb 12 15:15:26 2002] [notice] Apache/1.3.22 (Unix) mod_perl/1.26
configured -- resuming normal operations
[Tue Feb 12 15:15:26 2002] [info] Server built: Jan 23 2002 13:49:54
[Tue Feb 12 15:15:26 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)

uname
-----
/usr/local/bricolage/mike# uname -a
Linux linux0 2.2.16 #1 Wed Aug 2 20:22:26 GMT 2000 i686 unknown

perl -V
--------
/usr/local/bricolage/mike# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.2.16, archname=i686-linux
uname='linux linux0 2.2.16 #1 wed aug 2 20:22:26 gmt 2000 i686
unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=
8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
libc=, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -
Wl,-rpath,/usr/local/lib/perl5/5.6.1/i686-linux/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Jan 22 2002 01:19:50
@INC:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
.

http://bricolage-bugzilla.about.com/show_bug.cgi?id=96

_______________________________________________
Bricolage-Bugs mailing list
Bricolage-Bugs [at] lists
https://lists.sourceforge.net/lists/listinfo/bricolage-bugs

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.