cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Resolved] (CXF-6529) Attachment configuration has no effect
Date Mon, 27 Mar 2017 16:34:42 GMT


Daniel Kulp resolved CXF-6529.
       Resolution: Not A Problem
    Fix Version/s: Invalid

This is as designed.  Those properties only are in effect when we have to break streaming
and cache the attachments.  By default, CXF tries to stream attachments (and everything else)
whenever possible and thus those properties are irrelevant.   There are several "events" that
can cause having to cache the attachments and thats when these properties take effect.   Schema
validation is one, SAAJ handlers are another, some aspects of security, querying the number
of attachments in an interceptor, etc....  

> Attachment configuration has no effect
> --------------------------------------
>                 Key: CXF-6529
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.16
>            Reporter: Michael Clay
>             Fix For: Invalid
> It seems like attachment-memory-threshold,attachment-max-size and attachment-directory
configuration is ONLY effective if SCHEMA_VALIDATION_ENABLED is set to true which causes the
JAXBAttachmentSchemaValidationHack to explicitly #hold( and cache) the request from ServletInputStream
to file. 

This message was sent by Atlassian JIRA

View raw message