ECS: Error on creating buckets via the EMC ECS REST API in 3.1 getting createBucketParam was missing or empty (User Correctable)

           

   Article Number:     531363                                   Article Version: 2     Article Type:    Break Fix 
   

 


Product:

 

ECS Appliance,Elastic Cloud Storage

 

Issue:

 

 

Issue on creating buckets via the ECS Management API since the ECS upgrade to version 3.1 as per EMC ECS REST API REFERENCE   
   
    Getting Error: "Required parameter createBucketParam was missing or empty." ErrorCode: 1005.   
   
    It appears that 3.1 has an issue when passing the below in the request header:   

Content-Type: application/xml; charset=utf-8    
   
    Example:   
POST https://portal.ecstestdrive.com/object/bucket HTTP/1.1X-SDS-AUTH-TOKEN: BAAcZzdMNk1vbDkyRTIrTTBRSmNRd3EvYVAzVFdVPQMAjAQASHVybjpzdG9yYWdlb3M6VmlydHVhbERhdGFDZW50ZXJEYXRhOjAwOWYwNDZlLThkMDYtNDc4Ni1iN2NmLWY2MzM3NmZkNzg5ZQIADTI4MjE3MjU2ODIxMjUDAC51cm46VG9rZW46NjAwMzg2OTEtZTc2YS00ZGI3LWE3M2MtNzI2MmE3ODAwNjY1AgAC0A8=Accept: application/xmlContent-Type: application/xml; charset=utf-8Host: portal.ecstestdrive.comContent-Length: 331Expect: 100-continue<object_bucket_create xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><owner /><head_type>S3</head_type><name>test-1</name><namespace>130820690509421904</namespace><vpool>urn:storageos:ReplicationGroupInfo:104b3728-fba1-41b3-8055-4592348f1d24:global</vpool></object_bucket_create>HTTP/1.1 400 Bad RequestDate: Thu, 31 Aug 2017 18:22:42 GMTContent-Type: application/xmlContent-Length: 256<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>1005</code><description>Required parameter is missing or empty</description><details>Required parameter createBucketParam was missing or empty</details><retryable>false</retryable></error>    
   
   
                                                                

 

 

Cause:

 

 

This is a known issue in ECS code 3.1 what has been fixed in ECS 3.2                                                           

 

 

Change:

 

 

ECS was upgraded to version 3.1                                                           

 

 

Resolution:

 

 

As a workaround remove character encoding set bucket ACL:   
   
    Example:   

PUT https://portal.ecstestdrive.com/object/bucket/cas-131485299286380147/acl HTTP/1.1X-SDS-AUTH-TOKEN: BAAcVitKajNGV3R3YXQzRS9LSFF2TU1LMDIyWCtvPQMAjAQASHVybjpzdG9yYWdlb3M6VmlydHVhbERhdGFDZW50ZXJEYXRhOjAwOWYwNDZlLThkMDYtNDc4Ni1iN2NmLWY2MzM3NmZkNzg5ZQIADTI4MjE3MjU2ODIxMjUDAC51cm46VG9rZW46NmNhNTI0MmQtNzQyMS00ODUzLThiMTYtODk5NWI2ZGQzYTkwAgAC0A8=Accept: application/xmlContent-Type: application/xmlHost: portal.ecstestdrive.comContent-Length: 459Expect: 100-continue<bucket_acl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><bucket>cas-131485299286380147</bucket><namespace>131485299286380147</namespace><acl><owner>131485299286380147-admin</owner><user_acl><user>131485299286380147-admin</user><permission>full_control</permission></user_acl><user_acl><user>131485299286380147@ecstestdrive.emc.com</user><permission>full_control</permission></user_acl></acl></bucket_acl>HTTP/1.1 200 OKDate: Fri, 01 Sep 2017 19:28:35 GMTContent-Type: application/xmlContent-Length: 0    
   
   
    Fix Version/s: ECS 3.2.0