bugphpGroupWare - Bugs: bug #11239, Unable to manage VCF files with a...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11239: Unable to manage VCF files with a dash "-" in the file name

Submitted by:  François <franR>
Submitted on:  Tue 07 Dec 2004 04:06:33 PM UTC  
 
Item Group: 0.9.16.003Category: filemanager
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: Caeies <Caeies>Open/Closed: Open
Component Version: SVNOperating System: GNU/Linux - Debian
Reproducibility: IntermittentPlanned Release: None
Fixed Release: 

Mon 05 Dec 2005 09:29:39 AM UTC, comment #5:

Sorry I thought https://savannah.gnu.org/bugs/?func=detailitem&item_id=11239#comment3
was from the OP, thats why I closed it

Reopening

Dave Hall <skwashd>
Project Administrator
Sun 04 Dec 2005 10:22:59 AM UTC, comment #4:

You should always enter a webserver URL.

Closing

Dave Hall <skwashd>
Project Administrator
Wed 04 May 2005 08:08:05 PM UTC, comment #3:

I have found the cause to my problem. In the phpgw_config table there is no webserver_url name/value. this is caused by $_SERVER['PHP_SELF'] returning nothing on some setups. When you configure phpgw it tries to set the variable 'webserver_url' but since my system returned nothing for $_SERVER['PHP_SELF'] it was not set.

In filemanager (phpgw_vfs) there is a conditional that checks against the webserver_url variable, being that there is non set it is checking vs nothing and sometimes this passes and the server adds a / (slash) onto the begining of a uuencoded filename. This when uudecoded creates a garbage string
like your 'ýe]I­1])Ù\210É?Õ\221µ9' to fix it I added webserver_url
to the phpgw_config table with phpgwapi being the app and my webserver http address as the value.

I suppose adding a check for null value in the /setup/config.php
would be one way to stop this from happening.

// guessing the phpGW url
$parts = explode('/',$_SERVER['PHP_SELF']);
unset($parts[count($parts)-1]); // config.php
unset($parts[count($parts)-1]); // setup
$GLOBALS['current_config']['webserver_url'] = implode '/',$parts);

Hope this helps someone!

Greg

Greg Knapp <gaz954>
Mon 17 Jan 2005 02:30:02 PM UTC, comment #2:

Hi

Haven't get the time (problems with mysql & debian & php :( ) to test it. I will try to do my best asap (I get problem with french layout, you when people put an "é" in the filename ...

Regards,

Caeies

Caeies <Caeies>
Project AdministratorIn charge of this item.
Fri 10 Dec 2004 08:44:39 AM UTC, comment #1:

Heya FranR,

It seems that my new layout is not affected by this problem, could you give it a try ?
(see the patch manager latest vfs patch)

Note that I use dav, so this is perhaps a problem with sql backend.

Last but not least, I already see this kind of problem in other situation, but Im' not able to remember which... The fact is that the filename given in the log is really strange and I guess that this is perhaps a LOCALE issue with php.

I will test this on a stock install with a sql layer.

Thanks & regards,

Caeies

Caeies <Caeies>
Project AdministratorIn charge of this item.
Tue 07 Dec 2004 04:06:33 PM UTC, original submission:

Unable to move, rename, delete files like john-doe.vcf.
But johndoe.vcf or john-doe.jpg can be !
File size / empty file has not effect.

Debug mode in filemanager/index.php doesn't return valuable infos.
Syslog says:
apache: PHP Warning: unlink(/home/files/home/francois/ýe]I­1])Ù\210É?Õ\221µ9´): No such file or directory in /usr/share/phpgroupware/phpgwapi/inc/class.vfs_sql.inc.php on line 1597
(the real filename was add-book.vcf)

.16.003 was just resynchronized with CVS repository.

François <franR>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 7 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 05 Dec 2005 09:29:40 AM UTCskwashdCarbon-Copy-=>Added jarg
Mon 05 Dec 2005 09:29:39 AM UTCskwashdStatusInvalid=>None
  Open/ClosedClosed=>Open
Sun 04 Dec 2005 10:22:59 AM UTCskwashdStatusNone=>Invalid
  Open/ClosedOpen=>Closed
Mon 17 Jan 2005 02:30:02 PM UTCCaeiesReproducibilityEvery Time=>Intermittent
Fri 10 Dec 2004 08:15:29 AM UTCskwashdAssigned toNone=>Caeies

Back to the top


Powered by Savane 3.1-cleanup1