XFire

XFire 1.2.4 Client does not observe streaming attachment properties.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.2.4
  • Fix Version/s: 1.2.5
  • Component/s: Core
  • Labels:
    None
  • Environment:
    Windows XP, RedHat Linux, Sun Solaris 9
  • Number of attachments :
    0

Description

Setting the client properties

client.setProperty(StreamedAttachments.ATTACHMENT_DIRECTORY, new File(someDir)); client.setProperty(StreamedAttachments.ATTACHMENT_MEMORY_THRESHOLD, 0);

Has no affect. The client context is not being passed during the message unmarshalling. Here's how I fixed the problem in CommonsHttpMessageSender.java
The context with the props was not being passed to Streamed Attachments during construction on the client side. Please merge this fix in if it is appropriate.

410c410
< Attachments atts = new StreamedAttachments(getMessageContext(), in, ct);

> Attachments atts = new StreamedAttachments(in, ct);

Activity

Hide
Tomasz Sztelak added a comment -

Fixed in svn

Show
Tomasz Sztelak added a comment - Fixed in svn

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: