History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OX-3511
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Lukasz Wikierski
Reporter: Arlen Coupland
Votes: 1
Watchers: 0

If you were logged in you would be able to see more operations.
OpenX Ad Server

addBanner returns XML-RPC Error (801) "Structure field 'aImage' should be non-scalar type"

Created: 04/Jul/08 10:34 AM   Updated: 18/Aug/08 12:38 PM
Component/s: OXP: Web Services API
Affects Version/s: OpenX 2.5.67-beta
Fix Version/s: Milestone 21, OpenX 2.6.1, OpenX 2.7.13-dev
Security Level: Public (All users can see these issues)

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 5.5h
Time Spent: 5.5h
Time Spent - 5.5h

 Description  « Hide
Reported by 2 users, 1 at:

Using addBanner, $aImage should be an array
However the addBanner method is checking $aImage as non-scalar

In addBanner() :

if (!XmlRpcUtils::getRequiredScalarValue($sessionId, $oParams, 0,
                $oResponseWithError) ||
            !XmlRpcUtils::getStructureScalarAndNotScalarFields($oBannerInfo, $oParams,
                1, array('bannerId', 'campaignId', 'bannerName', 'storageType', 'fileName',
                        'imageURL', 'htmlTemplate', 'width', 'height', 'weight',
                        'target', 'url', 'status', 'adserver', 'transparent'),
                   array('aImage', 'aBackupImage'), $oResponseWithError)) {

            return $oResponseWithError;

The parameters are being passed to the getStructureScalarAndNotScalarFields method incorrectly, the declaration of getStructureScalarAndNotScalarFields is:

function getStructureScalarAndNotScalarFields(&$oStructure, &$oParams, $idxParam, $aScalars, $aNonScalars, &$oResponseWithError)

modifyBanner() seems to have the same issue

 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Error communicating with FishEye: java.io.IOException: https://developer.openx.org/fisheye/api/rest/query returned 503 Service Temporarily Unavailable