MantisBT

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008683mantisbtapi soappublic2007-12-20 04:222008-01-19 04:24
Reporterrombert 
Assigned Tovboctor 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.1.0 
Target Version1.1.1Fixed in Version1.1.1 
Summary0008683: mc_projects_get_user_accessible raises SYSTEM NOTICE, but it should not
DescriptionOther SOAP methods work fine ( mc_get_version and mc_project_get_users tested ).

Error config is default:

        $g_display_errors = array(
                E_WARNING => 'inline',
                E_NOTICE => 'none',
                E_USER_ERROR => 'halt',
                E_USER_WARNING => 'inline',
                E_USER_NOTICE => 'none'
        );
Additional InformationRequest:

<soapenv:Envelope>
 <soapenv:Body>
  <ns0:mc_projects_get_user_accessible>
   <username soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" [^] xsi:type="xsd:string">username</username>
   <password soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" [^] xsi:type="xsd:string">password</password>
  </ns0:mc_projects_get_user_accessible>
 </soapenv:Body>
</soapenv:Envelope

Response:

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> [^]
 <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode xsi:type="xsd:string">Server</faultcode>
   <faultactor xsi:type="xsd:string"/>
   <faultstring xsi:type="xsd:string">
Error Type: SYSTEM NOTICE, Error Description: Undefined variable: t_lang
    </faultstring>
  <detail xsi:type="xsd:string"/>
 </SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Tagspatch
Attached Filespatch file icon 8683.patch [^] (2,594 bytes) 2008-01-06 16:16 [Show Content]

- Relationships

-  Notes
User avatar (0016482)
vboctor (administrator)
2007-12-20 12:14

I haven't confirmed the issue, but I've targetted this issue to 1.1.1.
User avatar (0016520)
ccook (reporter)
2007-12-29 13:23

I have experienced the same issue using .NET

Error Type: SYSTEM WARNING, Error Description: Missing argument 1 for mc_projects_get_user_accessible()

Exception Details: System.Web.Services.Protocols.SoapException: Error Type: SYSTEM WARNING, Error Description: Missing argument 1 for mc_projects_get_user_accessible()
User avatar (0016521)
ccook (reporter)
2007-12-29 14:30

It looks like its just a missing parameter,

THE FIX:

FILE : mc_api.php

FROM : function mci_user_get_accessible_subprojects ( $p_user_id, $p_parent_project_id ) {
TO: function mci_user_get_accessible_subprojects ( $p_user_id, $p_parent_project_id, $t_lang ) {

FROM : $t_subproject['subprojects'] = mci_user_get_accessible_subprojects( $p_user_id, $t_subproject_id);
TO : $t_subproject['subprojects'] = mci_user_get_accessible_subprojects( $p_user_id, $t_subproject_id, $t_lang );



FILE : mc_project_api.php
IN: function mc_projects_get_user_accessible

FROM : $t_project['subprojects'] = mci_user_get_accessible_subprojects( $t_user_id, $t_project_id );
TO : $t_project['subprojects'] = mci_user_get_accessible_subprojects( $t_user_id, $t_project_id, $t_lang );
User avatar (0016566)
vboctor (administrator)
2008-01-06 16:14

Attached is my recommended patch, please verify it and let me know if it works fine now.
User avatar (0016613)
rombert (developer)
2008-01-10 05:10

mc_projects_get_user_accessible works fine with applied patch.

Thank you
User avatar (0016615)
vboctor (administrator)
2008-01-10 06:04

Resolved in Mantis 1.1.1 using svn: 4874
Resolved in Mantis 1.2.x using svn: 4873

Given that I have merged back the changes to 1.1 and this required some code changes, would be great if we can test this using the latest files in the 1.1.1 changeset.
User avatar (0016619)
planser (developer)
2008-01-10 07:50

I think the change introduced a new error in mc_api.php#mci_category_get_all_rows(). mantis_category_table does not yet exist in 1.1.x.
User avatar (0016690)
vboctor (administrator)
2008-01-17 03:01

Fixed in Mantis 1.1.1 using svn: 4900
Fixed in Mantis 1.2.x using svn: 4901

- Issue History
Date Modified Username Field Change
2007-12-20 04:22 rombert New Issue
2007-12-20 12:14 vboctor Note Added: 0016482
2007-12-20 12:14 vboctor Status new => acknowledged
2007-12-20 12:14 vboctor Target Version => 1.1.1
2007-12-20 12:14 vboctor Additional Information Updated
2007-12-29 13:23 ccook Note Added: 0016520
2007-12-29 14:30 ccook Note Added: 0016521
2007-12-29 18:22 vboctor Tag Attached: patch
2008-01-06 16:13 vboctor Status acknowledged => assigned
2008-01-06 16:13 vboctor Assigned To => vboctor
2008-01-06 16:14 vboctor File Added: 8683.patch
2008-01-06 16:14 vboctor Note Added: 0016566
2008-01-06 16:16 vboctor File Deleted: 8683.patch
2008-01-06 16:16 vboctor File Added: 8683.patch
2008-01-10 05:10 rombert Note Added: 0016613
2008-01-10 06:04 vboctor Status assigned => resolved
2008-01-10 06:04 vboctor Fixed in Version => 1.1.1
2008-01-10 06:04 vboctor Resolution open => fixed
2008-01-10 06:04 vboctor Note Added: 0016615
2008-01-10 07:50 planser Note Added: 0016619
2008-01-10 11:05 vboctor Status resolved => assigned
2008-01-10 11:05 vboctor Resolution fixed => open
2008-01-10 11:05 vboctor Fixed in Version 1.1.1 =>
2008-01-17 03:01 vboctor Status assigned => resolved
2008-01-17 03:01 vboctor Fixed in Version => 1.1.1
2008-01-17 03:01 vboctor Resolution open => fixed
2008-01-17 03:01 vboctor Note Added: 0016690
2008-01-19 04:24 vboctor Status resolved => closed


MantisBT 1.2.17 [^]
Copyright © 2000 - 2014 MantisBT Team
Time: 0.1132 seconds.
memory usage: 3,084 KB
Powered by Mantis Bugtracker