ME fails to list/accept Mantis subprojects
Posted: Fri Feb 22, 2019 8:51 pm
Hi Mathias!
I have a Mantis server with several levels of subprojects. ME GUI only offers projects in dropdown from first level. When i manually write the project name in .mes file, it is also ignored because ME tries to retrieve the project ID but fails (the report is posted under first project instead).
It seems to me the problem is in parsing the reply to "mc_projects_get_user_accessible". It further looks like the problem could be empty subprojects listings like these "<subprojects SOAP-ENC:arrayType="ns1:ProjectData[0]" xsi:type="SOAP-ENC:Array"/>" - notice there is no "</subprojects>" tag. It is terminated with / in same tag. ExtractXml2 seems to be trying to find normal tag closing only.
I may be wrong in my assumption because ExtractXml procedure is hard to understand.
I'll attach sample data received to s1 from "if MantisCall('mc_projects_get_user_accessible', s1, true) then begin". It is not raw data, i sanitized it and made it shorter but xml is valid.
So what i'm getting is:
Level 1 project 1
Level 1 project 2
What would be correct is:
Level 1 project 1
Level 2 project 1
Level 3 project 1
Level 3 project 2
Level 3 project 3
Level 2 project 2
Level 2 project 3
Level 1 project 2
Help, please
I have a Mantis server with several levels of subprojects. ME GUI only offers projects in dropdown from first level. When i manually write the project name in .mes file, it is also ignored because ME tries to retrieve the project ID but fails (the report is posted under first project instead).
It seems to me the problem is in parsing the reply to "mc_projects_get_user_accessible". It further looks like the problem could be empty subprojects listings like these "<subprojects SOAP-ENC:arrayType="ns1:ProjectData[0]" xsi:type="SOAP-ENC:Array"/>" - notice there is no "</subprojects>" tag. It is terminated with / in same tag. ExtractXml2 seems to be trying to find normal tag closing only.
I may be wrong in my assumption because ExtractXml procedure is hard to understand.
I'll attach sample data received to s1 from "if MantisCall('mc_projects_get_user_accessible', s1, true) then begin". It is not raw data, i sanitized it and made it shorter but xml is valid.
So what i'm getting is:
Level 1 project 1
Level 1 project 2
What would be correct is:
Level 1 project 1
Level 2 project 1
Level 3 project 1
Level 3 project 2
Level 3 project 3
Level 2 project 2
Level 2 project 3
Level 1 project 2
Help, please