Issue Details (XML | Word | Printable)

Key: IBEANS-186
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Daniel Feist
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
iBeans

Content-Type header is not available in ParamFactory's when payload is set in CallInterceptor

Created: 09/Mar/10 09:10 PM   Updated: Tuesday 02:46 PM
Component/s: Core
Affects Version/s: Beta 10
Fix Version/s: None

Time Tracking:
Not Specified

Labels:
User impact: Medium
Similar Issues:


 Description  « Hide
Content-Type is needed to generate signature for S3 access. The signature ParamFactory tries do this use, but value is always null.
CallInterceptor:
class CreateBucketInterceptor extends AbstractCallInterceptor
    {
        @Override
        public void beforeCall(InvocationContext invocationContext) throws Throwable
        {
            BucketLocation location = (BucketLocation) invocationContext.getParam("location");
            if (location.equals(BucketLocation.EU))
            {
                invocationContext.addRequestPayload("<CreateBucketConfiguration><LocationConstraint>EU</LocationConstraint></CreateBucketConfiguration>");
                // Need to set this here because of IBEANS-186
                invocationContext.addRequestHeaderParam("Content-Type", "text/plain; charset=UTF-8");
            }
        }
    }

ParamFactory:

headers.containsKey("Content-Type")


 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.