View Issue Details

IDProjectCategoryView StatusLast Update
0006466mantisbtattachmentspublic2014-01-29 15:50
ReporterMiren Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Product Version1.0.0rc3 
Summary0006466: Mantis crashes on deleting a project when file_upload_method = FTP and PHP has no FTP support
Description

I could not delete a project.
When I delete a project, could see the error like below.

Fatal error: Call to undefined function: ftp_connect() in / ... /public_html/mantis/core/file_api.php on line 298

In my config_inc.php
$g_file_upload_method = FTP;

TagsNo tags attached.

Relationships

related to 0016849 closedvboctor Drop FTP support 

Activities

grangeway

grangeway

2005-12-06 17:08

reporter   ~0011697

If your using FTP for file uploads to the bug tracker, you need to have the ftp functions compiled into php for the ftp_connect function to be defined. See: http://uk2.php.net/manual/en/ref.ftp.php

jlatour

jlatour

2005-12-06 18:43

reporter   ~0011698

I suppose the software could handle this gracefully... could you check whether admin/check.php warns you about not having FTP support?

banke

banke

2008-08-31 16:45

reporter   ~0019276

Last edited: 2008-08-31 16:51

I have looked into this.

As far as i can tell ftp support for fileupload is broke. The check for whether an upload path is valid, file_ensure_valid_upload_path() uses the method is_writable() and is_readable() which are not supported with ftp according to http://dk.php.net/manual/en/wrappers.ftp.php

Also the ftp settings:
$g_file_upload_ftp_server
$g_file_upload_ftp_user
$g_file_upload_ftp_pass

are not considered when validating the path. The only data passed down to the checking method is the path entered in the field on the project update page.

Looks like it is related to this issue 0003734. Maybe it should be removed from the roadmap for the 1.2.x release?

vboctor

vboctor

2009-05-20 02:52

manager   ~0021854

This is no longer targeted for 1.2.x.

vboctor

vboctor

2014-01-19 19:36

manager   ~0039101

See 0016849 - this feature is being deprecated.