You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2010/09/07 08:12:32 UTC

[jira] Created: (TRINIDAD-1905) Problem with the JMeter HTTP Proxy

Problem with the JMeter HTTP Proxy
----------------------------------

                 Key: TRINIDAD-1905
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1905
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions: 2.0.0-alpha-2, 1.2.13-core 
            Reporter: Matthias Weßendorf
            Assignee: Matthias Weßendorf


When running upload stress-tests with JMEter, there is a bug in Trinidad, as noticed here:

http://markmail.org/message/p624zgpd7h2klleg

Stack:

org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
beginRequest
GRAVE:
java.io.IOException
       at
org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:208)
       at
org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:119)
       at
org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:523)
       at
org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:209)
       at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:142)
       at
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
       at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
       at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
       at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
       at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
       at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
       at
org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
       at
org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
       at
org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1905) Problem with the JMeter HTTP Proxy

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906682#action_12906682 ] 

Matthias Weßendorf commented on TRINIDAD-1905:
----------------------------------------------

There was a similar thread on the JMeter list:

http://markmail.org/message/v2brfsmz257uppy6

where thoughts are that the issue is in Trinidad

> Problem with the JMeter HTTP Proxy
> ----------------------------------
>
>                 Key: TRINIDAD-1905
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1905
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.13-core , 2.0.0-alpha-2
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>
> When running upload stress-tests with JMEter, there is a bug in Trinidad, as noticed here:
> http://markmail.org/message/p624zgpd7h2klleg
> Stack:
> org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
> beginRequest
> GRAVE:
> java.io.IOException
>        at
> org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:208)
>        at
> org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:119)
>        at
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:523)
>        at
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:209)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:142)
>        at
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
>        at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>        at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1905) Problem with the JMeter HTTP Proxy

Posted by "Blake Sullivan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906866#action_12906866 ] 

Blake Sullivan commented on TRINIDAD-1905:
------------------------------------------

The code appears to be expecting that the only header that will appear in each of the subsections is the content-type header.  This is clearly wrong.
>From the RFC:

> A body part is NOT to be interpreted as actually being an RFC 822 message.
> To begin with, NO header fields are actually required in body parts. A body
> part that starts with a blank line, therefore, is allowed and is a body part
> for which all default values are to be assumed. In such a case, the absence
> of a Content-Type header field implies that the encapsulation is plain
> US-ASCII text. The only header fields that have defined meaning for body
> parts are those the names of which begin with "Content-". All other header
> fields are generally to be ignored in body parts. Although they should
> generally be retained in mail processing, they may be discarded by gateways
> if necessary. Such other fields are permitted to appear in body parts but
> should not be depended on. "X-" fields may be created for experimental or
> private purposes, with the recognition that the information they contain may
> be lost at some gateways.
>

The code will thus have to check all of the headers until it gets to the extra newline separating the header block

> Problem with the JMeter HTTP Proxy
> ----------------------------------
>
>                 Key: TRINIDAD-1905
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1905
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.13-core , 2.0.0-alpha-2
>            Reporter: Matthias Weßendorf
>            Assignee: Matthias Weßendorf
>
> When running upload stress-tests with JMEter, there is a bug in Trinidad, as noticed here:
> http://markmail.org/message/p624zgpd7h2klleg
> Stack:
> org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl
> beginRequest
> GRAVE:
> java.io.IOException
>        at
> org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:208)
>        at
> org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:119)
>        at
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:523)
>        at
> org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:209)
>        at
> org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:142)
>        at
> org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
>        at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
>        at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
>        at
> org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
>        at
> org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.