ME fails to list/accept Mantis subprojects

delphi package - automated exception handling

ME fails to list/accept Mantis subprojects

Postby slemmnord » 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 :)

test.zip
not really zip file.. the forum did not accept xml or txt. this is just text file.
(8.75 KiB) Downloaded 10 times
slemmnord
 
Posts: 30
Joined: Fri Jan 17, 2014 1:04 am

Re: ME fails to list/accept Mantis subprojects

Postby slemmnord » Fri Feb 22, 2019 8:53 pm

Forgot to mention i'm on version 4.0.21 but i subscribed to v5 so i'm a good citizen :P
slemmnord
 
Posts: 30
Joined: Fri Jan 17, 2014 1:04 am

Re: ME fails to list/accept Mantis subprojects

Postby madshi » Mon Feb 25, 2019 9:13 am

Is the concepts of subprojects a new feature in Mantis? I don't think I was aware of that this before.

I'll put this on my to do list, but it might take a bit until I get to it.
madshi
Site Admin
 
Posts: 9960
Joined: Sun Mar 21, 2004 5:25 pm

Re: ME fails to list/accept Mantis subprojects

Postby slemmnord » Mon Feb 25, 2019 3:40 pm

Nope, not new concept. ME is parsing for subprojects (there are calls like ExtractXml('<subproject|item'...) but for some reason it cant go deeper than first level.
slemmnord
 
Posts: 30
Joined: Fri Jan 17, 2014 1:04 am


Return to madExcept

Who is online

Users browsing this forum: Google [Bot] and 3 guests