Application Error #401
Contents |
5 hours Powered by phpBB Forum Software © phpBB Group
- LinkedCustomFields Plugin - MachineAD Plugin - MantisTouchRedirect Plugin - RecurrCall Plugin - RelatedIssuesExport Plugin - Reminder Plugin - Tasks Plugin - Time Tracking 2016-09-30 18:47 EDT My View View Issues Change
Error 401 Twitter Blocked
Log Roadmap Wiki Repositories View Issue Details[Jump to Notes] [Wiki] [Issue error 401 twitter iphone History] [Print] IDProjectCategoryView StatusDate SubmittedLast Update0004850mantisbtbugtrackerpublic2004-11-10 05:292008-08-12 09:35ReporterschneiderjAssigned TograngewayPrioritynormalSeveritycrashReproducibilityalwaysStatusclosedResolutionno change requiredProduct Version0.19.1Target VersionFixed in VersionSummary0004850: Application error 0000401 pdf-upload what does twitter error 401 mean doesn't workDescriptionupload of pdf-files doesn't work. i get the application error 0000401. the pdf-files are about 4 MB large. other documents work.TagsNo tags attached.Attached Files Relationships has duplicate0004849closedvboctorApplication error 0000401 pdf-upload https://www.mantisbt.org/forums/viewtopic.php?f=3&t=19525 doesn't work child of0004350closeddhxFAQ Relationships Notes ~0008405 thraxisp (reporter) 2004-11-22 19:39 This sounds like an issue with mySQL setup. I assume that you are saving files to the DATABASE. Is it all large files that fail? If so, you could look at the "max_allowed_packet" parameter in the my.cnf file in your installation. ~0009114 leonel (reporter) 2005-01-27 07:23 I just experienced a similar issue https://www.mantisbt.org/bugs/view.php?id=4850 on my mantis installation. I had no "max_allowed_packet" configured on my.cnf. Setting it to 16M, according to instructions in the following page, solved the problem: http://dev.mysql.com/doc/mysql/en/packet-too-large.html ~0011706 jlatour (reporter) 2005-12-07 03:08 Are the docs and admin/check.php clear on this? ~0013254 marcgeldon (reporter) 2006-08-12 13:45 I had the same problem. My "max_allowed_packet" was configured to 1 MB (/etc/my.cnf). I changed it to the same size as the maximum allowed upload size from PHP. Now it does work! ~0013255 marcgeldon (reporter) 2006-08-12 13:46 Maybe it's possible to get the "max_allowed_packet" variable in any way (via a SELECT?) from the mySQL server. I nice idea would be to check this size with the maximum upload size from PHP. If the "max_allowed_packet" value is lower, warn the user/administrator. ~0013271 chillax (developer) 2006-08-14 14:08 SHOW VARIABLES LIKE 'max_allowed_packet'; ~0017740 grangeway (reporter) 2008-05-02 18:20 Thank you for taking the time to report a problem with mantis. Since this problem report was originally made, a number of releases have occurred. It appears that this issue has either been fixed, or may not be a relevant report for the current release. Unfortunately you are n
- LinkedCustomFields Plugin - MachineAD Plugin - MantisTouchRedirect Plugin - RecurrCall Plugin - RelatedIssuesExport Plugin - Reminder Plugin - Tasks Plugin - Time Tracking 2016-09-30 18:47 EDT https://www.mantisbt.org/bugs/view.php?id=12674 My View View Issues Change Log Roadmap Wiki Repositories View Issue Details[Jump to Notes] [Wiki] [Issue History] [Print] IDProjectCategoryView StatusDate SubmittedLast Update0012674mantisbtdb mssqlpublic2011-01-10 17:172015-03-15 19:58ReportertedAssigned TodregadPrioritynormalSeveritymajorReproducibilityalwaysStatusclosedResolutionfixedPlatformIISOSWindowsOS Version2003Product Version1.2.4Target Version1.3.0-beta.2Fixed in Version1.3.0-beta.2Summary0012674: APPLICATION ERROR 0000401 on manage_user_edit_page.php and other occasionsDescriptionThis is probably a bug in the ODBC driver, I'm using SQL Native Client 2005.90.1399.00 (according to ODBC Admin) with error 401 SQL Server 2005. PHP Version is 5.3.5 The problem occurs in core\print_api.php, function print_project_user_list_option_list2Steps To Reproduce- Create a new user account on the start page - Log in as admin and try to edit user properties Additional InformationI guess the problem is that this ODBC driver cannot handle bound variables in LEFT JOIN ON... statements. After modifying the application error #401 function to the following everything worked fine: function print_project_user_list_option_list2( $p_user_id ) { $t_mantis_project_user_list_table = db_get_table( 'mantis_project_user_list_table' ); $t_mantis_project_table = db_get_table( 'mantis_project_table' ); $c_user_id = db_prepare_int( $p_user_id ); # $query = "SELECT DISTINCT p.id, p.name # FROM $t_mantis_project_table p # LEFT JOIN $t_mantis_project_user_list_table u # ON p.id=u.project_id AND u.user_id=" . db_param() . " # WHERE p.enabled = " . db_param() . " AND # u.user_id IS NULL # ORDER BY p.name"; $query = "SELECT DISTINCT p.id, p.name FROM $t_mantis_project_table p LEFT JOIN $t_mantis_project_user_list_table u ON p.id=u.project_id AND u.user_id=$c_user_id WHERE p.enabled = " . db_param() . " AND u.user_id IS NULL ORDER BY p.name"; # $result = db_query_bound( $query, Array( $c_user_id, true ) ); $result = db_query_bound( $query, Array( true ) ); $category_count = db_num_rows( $result ); for( $i = 0;$i < $category_count;$i++ ) { $row = db_fetch_array( $result ); $t_project_name = string_attribute( $row['name'] ); $t_user_id = $row['id']; echo ""; } } The same error occured in other sutuations, like verifying a newly created account, and went away when I replaced bound variables in LEF