SDK: Tracker.getModuleWorkItemUris without parentURI

Description
rpn
Posts: 23
Joined: Thu Oct 26, 2017 4:08 pm

SDK: Tracker.getModuleWorkItemUris without parentURI

Postby rpn » Wed Oct 17, 2018 12:38 pm

A call of getModuleWorkItemUris stopped working in my client-code today.
I let the user select his projectgroup, project and then the module/document he wants to view.
The Parameters of this function are defined as follows:
Parameters:
moduleURI - The Module/Document URI.
parentWorkItemURI - The URI of the parent Work Item or null.
deep - true to return Work Items from the whole subtree.

The arguments for my call are a [valid Module-Uri, null, true]
- this used to work without problem.

Now I get an Exception from the server:
"Exception thrown: 'System.ServiceModel.FaultException' in mscorlib.dll
Additional information: java.lang.IllegalArgumentException: URI scheme null is not subterra"
I guess it is about the parentWorkItemURI, because it is the only null-argument I hand over.

Anyone else got this problem - or better: Knows how to fix it?
No native speaker, sorry for my bad English.

rpn
Posts: 23
Joined: Thu Oct 26, 2017 4:08 pm

Re: SDK: Tracker.getModuleWorkItemUris without parentURI

Postby rpn » Wed Oct 17, 2018 1:03 pm

Seems related:
http://forums.polarion.com/viewtopic.php?t=97454

I only wonder why my calls returned until today.
No native speaker, sorry for my bad English.

rpn
Posts: 23
Joined: Thu Oct 26, 2017 4:08 pm

Re: SDK: Tracker.getModuleWorkItemUris without parentURI

Postby rpn » Wed Oct 17, 2018 3:50 pm

Our Admin says there where no changes in our productive system and the sdk-code did not change on client-side, so I have no idea why this stopped working.

Anyway:
I found a workaround by adding the decorator

Code: Select all

[System.Xml.Serialization.XmlElementAttribute(IsNullable = true)]

to make the field explicitly nullable in the request-partial-class (parentWorkItemURI in this case).

A colleague mentioned it could have something to do with an outdated/corrupted index in the polarion-instance... this bugs me, so if anyone knows something about this, please report here. :)
No native speaker, sorry for my bad English.

rpn
Posts: 23
Joined: Thu Oct 26, 2017 4:08 pm

Re: SDK: Tracker.getModuleWorkItemUris without parentURI

Postby rpn » Mon Oct 29, 2018 5:45 pm

Turns out it was a corrupted index on our instance.
If you run in issues like that, make sure your index is not corrupted.
No native speaker, sorry for my bad English.


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 6 guests