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 2016/09/23 08:50:04 UTC

[Bug 60167] New: PasswdUserDatabase cannot parsing /etc/passwd with empty-line

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

            Bug ID: 60167
           Summary: PasswdUserDatabase cannot parsing /etc/passwd with
                    empty-line
           Product: Tomcat 8
           Version: 8.0.x-trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: scheho@gmail.com

summary:

  When PasswdUserDatabase initialize @/etc/passwd/@ with empty-line,
  cannot parsing completely.

  *
https://tomcat.apache.org/tomcat-8.0-doc/config/host.html#User_Web_Applications


========================================================

my /etc/passwd:

  <...>
  lxc-dnsmasq:x:114:125:LXC dnsmasq,,,:/var/lib/lxc:/bin/false
  moodle:x:1002:1002:,,,:/home/moodle:/bin/bash
  tomcat8:x:117:126::/usr/share/tomcat8:/bin/false


  # 시스템 관리자

  jehos:x:1001:1001:성제호,,,:/home/jehos:/bin/bash
  <...>


========================================================

try:
  GET http://localhost:8080/~myid

expect:
  ~myid/public_html/index.html

actual:
  404 not found

workaround:
  remove all empty-lines,
  in my case, just comment out (#)

suspect:
 
https://github.com/apache/tomcat/blob/trunk/java/org/apache/catalina/startup/PasswdUserDatabase.java#L147

-- 
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 60167] PasswdUserDatabase cannot parsing /etc/passwd with empty-line

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

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

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

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This has been fixed in the following branches:
- 9.0.x for 9.0.0.M11 onwards
- 8.5.x for 8.5.6 onwards
- 8.0.x for 8.0.38 onwards
- 7.0.x for 7.0.73 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 60167] PasswdUserDatabase cannot parsing /etc/passwd with empty-line

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

--- Comment #2 from Jeho Sung <sc...@gmail.com> ---
@markt++

-- 
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