cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: how to get the attachement filename from DataHandler?
Date Wed, 26 Dec 2012 03:14:14 GMT
Hi,

This is a known issue and already get fixed by CXF-4420[1], CXF 2.6.2 have this fix, so please
upgrade your CXF version.

[1]https://issues.apache.org/jira/browse/CXF-4420
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2012-12-26, at 上午10:50, chengy@action wrote:

> Are you sure?There may be something wrong!It get null. 
> 
> I find the client code really not add the Content-disposition header in
> request: 
> Holder<DataHandler> handler = new Holder<DataHandler>(); 
> handler.value = new DataHandler(fileURL); 
> port.testDataHandler(name, handler); 
> 
> Then,although I set this header,I still get null from DataHandler.getName()
> method: 
> Content-Transfer-Encoding: binary 
> Content-ID: <777fb969-f57d-41fc-8aff-51f37503efcd> 
> content-disposition: attachment; name="adapter.txt" 
> 
> Is this a bug? 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/how-to-get-the-attachement-filename-from-DataHandler-tp5720791p5720795.html
> Sent from the cxf-user mailing list archive at Nabble.com.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message