You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2017/10/26 06:23:45 UTC

[Bug 61668] New: Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

            Bug ID: 61668
           Summary: Possible NullPointerException in
                    org.apache.coyote.http11.AbstractHttp11Protocol
           Product: Tomcat 8
           Version: 8.5.23
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: esinyakub@gmail.com
  Target Milestone: ----

There are possible NullPointerException-s in
org.apache.coyote.http11.AbstractHttp11Protocol's getSSLProtocol() and
getSslEnabledProtocols() methods. In both methods if the SSL host configuration
does not contain an "enabledProtocols" configuration the following line causes
NPE:

StringUtils.join(this.defaultSSLHostConfig.getEnabledProtocols())

Easy repro step is running the following code:

public static void main(String[] args) {
    Http11Nio2Protocol protocol = new Http11Nio2Protocol();
    protocol.getSSLProtocol();
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 61668] Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

Emmanuel Bourg <eb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|VERIFIED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 61668] Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

Christopher Schultz <ch...@christopherschultz.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |Beginner
           Severity|normal                      |minor

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 61668] Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Thanks for the report.

This has been fixed in:
- 9.0.x for 9.0.2 onwards
- 8.5.x for 8.5.24 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 61668] Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

--- Comment #1 from Mithun Sasidharan <mi...@gmail.com> ---
PR for this bug - https://github.com/apache/tomcat/pull/83

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 61668] Possible NullPointerException in org.apache.coyote.http11.AbstractHttp11Protocol

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=61668

Esin Yakub <es...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED

--- Comment #3 from Esin Yakub <es...@gmail.com> ---
Thanks for the quick reaction guys!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org