These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

API-Bug in Contracts.xml.aspx

Author
Nexuscrawler
Evil Moustache
#1 - 2014-06-15 20:20:47 UTC
Hello,

I am currently working on a website which is heavily reliant on the contract API. During some API calls I've noticed a strange response with respect to items which happen to be blueprints or singleton. The row attribute values of the XML document (ContractItems.xml.aspx) do not match the API documentation and are in my opinion wrong.

As the documentation (http://wiki.eve-id.net/APIv2_Char_ContractItems_XML) points out, a negative value for "quantity" is in fact a code. If the item does not happen to be a blueprint, a negative value of "-1" should imply a singleton. If the item happens to be a blueprint, a negative "quantity" of "-1" would be an original, whereas "-2" would be a copy.

Please look at this screenshots:
Contract.png
Api.jpg

This are screenshots of an active contract I've set up for testing purposes as well as the returned XML file from the API call. It contains a "Cap Booster 800 Blueprint (Copy)" and a "Scourge Heavy Missile Blueprint (Original)". According to the documentation, I expect the values in the XML file for the copy to be "-2" for "quantity" and "1" for "singleton", as a copy is not stackable. I also expect the values for the original to be "-1" for "quantity" and "1" for "singleton", as the blueprint ist researched and thus also not stackable. I'd also expect the attribute "rawQuantity" to show up.

All "quantitys" are positiv, which implies that non of the items are blueprints or singleton, which is wrong. Also the value of the attribute "singleton" is "0" for every row and there is no "rawQuantity" attribute.

I can not see how I could determine whether the current item is a blueprint copy , original or whether the item is a singleton within the returned XML file.

Does anyone else have this same problem?



Best Regards,
Nexuscrawler

The clan's are marching `gainst the law, Bagpipers play the tunes of war, Death or glory i will find, Rebellion on my mind.

Desmont McCallock
#2 - 2014-06-15 20:23:30 UTC
Known bug that CCP never fixed since the creation of those API endpoints. But there is hope. CCP FoxFour is your guy to talk to.
Nexuscrawler
Evil Moustache
#3 - 2014-06-15 20:34:08 UTC
I've already done that. Smile
I was told to make this post to further track down the people with the same problem and maybe what's causing it.
But if the problem is already known....

The clan's are marching `gainst the law, Bagpipers play the tunes of war, Death or glory i will find, Rebellion on my mind.

ItsmeHcK1
Immortalis Inc.
Shadow Cartel
#4 - 2014-06-15 21:05:34 UTC
I noticed it, but never cared enough to post anything about it. (It doesn't really change anything for my programming work either way, so #care)
Nexuscrawler
Evil Moustache
#5 - 2014-06-16 06:43:58 UTC  |  Edited by: Nexuscrawler
If you don't use the contract API for your projects then of course, why care about it?

But as it is for me, when people know about this bug, they can pretty much trick my system as I have no way to check whether the player gave me (for example) an actual carrier BPO or just a BPC.
Both are represented the same way on the API page.

The clan's are marching `gainst the law, Bagpipers play the tunes of war, Death or glory i will find, Rebellion on my mind.