SOAP GetLinkByAsset needs LinkType required


(Nic Hubbard) #1

I am 99% sure that the GetLinkByAsset SOAP function needs to have the LinkType param as required. In the docs, it doesn't say it is mandatory, but the function fails if you don't pass a link type.


http://manuals.matrix.squizsuite.net/web-services/chapters/soap-api-link-service#getlinkbyasset


(Benjamin Pearson) #2

[quote]
I am 99% sure that the GetLinkByAsset SOAP function needs to have the LinkType param as required. In the docs, it doesn't say it is mandatory, but the function fails if you don't pass a link type.



http://manuals.matrix.squizsuite.net/web-services/chapters/soap-api-link-service#getlinkbyasset

[/quote]



Smells like a bug to me :wink: In asset manager (which this function calls) the link type is optional. I think the default in GetLinkByAsset is incorrect hence the failure you are detecting.


(Ashish Karelia) #3

[quote]
Smells like a bug to me :wink: In asset manager (which this function calls) the link type is optional. I think the default in GetLinkByAsset is incorrect hence the failure you are detecting.

[/quote]



Roger that. will have a look and fix it if needed.



Ash


(Nic Hubbard) #4

[quote]
Roger that. will have a look and fix it if needed.

[/quote]



Thanks!


(Ashish Karelia) #5

Okie this bug is now fixed and in testing. More info at
#5610 SOAP GetLinkByAsset() not passing correct default value to Asset_Manager::getLinkByAsset()



Ash