axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sridhar Dabbeeru <dabbeeru.venkata.srid...@cgifederal.com>
Subject Filtering MTOM attachments based on disposition file name and content type
Date Tue, 07 Jun 2011 15:05:01 GMT

Hi,
I have a requirement to apply a security filter on MTOM attachments based on
configured of content type and file name extension. For example file name
with ".mp3" shouldn't be allowed for uploading or
content image/png shouldn't be allowed. 

I see in my soap request Content-Disposition: attachment; name="xyz.tif" but
the file name is not being parsed in axis2. I was expecting the name in my
DataHandler but that turned out to be stream name. Datahandler does give me
handle for the correct content type. The only missing link is file name.

I am wondering does axis2 parses disposition file name at all?

Can any one  help me to resolve this.

If it does where is the best place to have these configuration embedded. 

Thanks,
Sridhar
-- 
View this message in context: http://old.nabble.com/Filtering-MTOM-attachments-based-on-disposition-file-name-and-content-type-tp31792102p31792102.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message