Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

mantisbt/api/soap mc_file_api.php,1.1,1.2: msg#00071

bug-tracking.mantis.cvs

Subject: mantisbt/api/soap mc_file_api.php,1.1,1.2

Update of /cvsroot/mantisbt/mantisbt/api/soap
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3273

Modified Files:
mc_file_api.php
Log Message:
Fixed #8492: Add attachment succeeds but creates broken attachment if upload
path not found.
Fixed #8493: Attachments created via SOAP API don't owner
attachments_file_permissions config option.

Index: mc_file_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/api/soap/mc_file_api.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mc_file_api.php 18 Jul 2007 06:52:53 -0000 1.1
+++ mc_file_api.php 20 Oct 2007 23:16:47 -0000 1.2
@@ -78,6 +78,11 @@
$t_file_path = config_get(
'absolute_path_default_upload_folder' );
}
}
+
+ if ( !file_exists( $t_file_path ) ) {
+ return new soap_fault( 'Server', '', "Upload folder
'{$t_file_path}' doesn't exist." );
+ }
+
$c_file_path = db_prepare_string( $t_file_path );
$c_new_file_name = db_prepare_string( $p_name );

@@ -101,9 +106,10 @@
file_ftp_put ( $conn_id,
$t_disk_file_name, $t_disk_file_name );
file_ftp_disconnect ( $conn_id
);
file_delete_local(
$p_disk_file_name );
- } else {
- chmod( $t_disk_file_name, 0400
);
}
+
+ chmod( $t_disk_file_name, config_get(
'attachments_file_permissions' ) );
+
$c_content = '';
}
break;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation