Menu

#348 Shutdown broken in 3.0.6, shutdown through HTTPS is broken

v3.0 Rabbit Hole
closed-fixed
9
2003-06-26
2003-01-30
No

3 fixes:

1. In 3.0.6 org.jboss.Shutdown is broken:
PasswordAuthenticator(String username, String password)
throws NPE if password is not given. See also patch #
677603. The patch prevents this.

2. It is impossible to shutdown with org.jboss.Shutdown
if HTTP is disabled.
To fix, I propose to use additional parameter:
java org.jboss.Shutdown [host [port [protocol]]] [-u
username] [-p password] [-c shutdown_command]
Protocol is located after port to prevent existing
scripts from break.

3. Masking most exceptions makes it hard to find why
the shutdown is not happening. With patch all
exceptions are being printed to System.err with
printStackTrace().

Vlad Kosulin

Discussion

  • Vladyslav Kosulin

     
  • Vladyslav Kosulin

    Logged In: YES
    user_id=562186

    Here is file.

     
  • Scott M Stark

    Scott M Stark - 2003-02-05
    • assigned_to: nobody --> starksm
    • status: open --> closed-fixed
     
  • Vladyslav Kosulin

    • priority: 5 --> 9
    • status: closed-fixed --> open-accepted
     
  • Vladyslav Kosulin

    Logged In: YES
    user_id=562186

    Unfortunately, Scott Stark applied the patch incompletely.
    As a result, Shutdown still does not work if http is disabled.
    Here are changes missed:
    org.jboss.Shutdown.java:
    change
    URL url = new URL("http", host, port, command);
    to
    URL url = new URL(protocol, host, port, command);

     
  • Scott M Stark

    Scott M Stark - 2003-06-26
    • status: open-accepted --> closed-fixed
     
  • Scott M Stark

    Scott M Stark - 2003-06-26

    Logged In: YES
    user_id=175228

    This was fixed in 3.0.8.

     

Log in to post a comment.

MongoDB Logo MongoDB