Ticket #1 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 years ago

remove deprecated BASE64Encoder classes

Reported by: matighet Owned by: prubel
Priority: minor Component: HTTPS proxy
Version: Keywords:
Cc:

Description

When compiling phishbouncer with jdk1.6, the following warnings show up:

   [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:61: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future r
    [javac] import sun.misc.BASE64Decoder;
    [javac]                ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:62: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future r
    [javac] import sun.misc.BASE64Encoder;
    [javac]                ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:428: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future 
    [javac]         BASE64Encoder encoder = new BASE64Encoder ();
    [javac]         ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:428: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future 
    [javac]         BASE64Encoder encoder = new BASE64Encoder ();
    [javac]                                     ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:453: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future 
    [javac]         BASE64Decoder decoder = new BASE64Decoder ();
    [javac]         ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:453: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future 
    [javac]         BASE64Decoder decoder = new BASE64Decoder ();
    [javac]                                     ^
    [javac] /home/matighet/projects/pb/pb/src/com/bbn/pb/sec/SecurityComponent.java:471: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future 
    [javac]         BASE64Encoder encoder = new BASE64Encoder ();

The solution is to use an alternate encoder/decoder class.

Attachments

base64.patch (2.2 KB) - added by prubel 5 years ago.
Patch for using jakarta commons base64 encode/decode

Change History

Changed 5 years ago by matighet

  • component changed from component1 to HTTPS proxy

Changed 5 years ago by matighet

  • owner changed from somebody to matighet

Changed 5 years ago by prubel

Patch for using jakarta commons base64 encode/decode

Changed 5 years ago by prubel

  • owner changed from matighet to prubel
  • status changed from new to assigned

I attached a patch that should fix this problem. In the pb/redist/commons-codec-1.3.jar there is a more stable base64 encoder. It passes the tests but I'm hesitant to check it in right at release time.

Changed 3 years ago by matighet

  • status changed from assigned to closed
  • resolution set to fixed

replaced with the codec.

Note: See TracTickets for help on using tickets.