1. 27 Sep, 2016 1 commit
  2. 17 Jul, 2016 1 commit
    • Alex Klyubin's avatar
      Fix NPEs in PKCS7 parsing introduced by last commit. · 11dda1f7
      Alex Klyubin authored
      This fixes NPEs introduced by me in sun.security.pkcs.PKCS7 in commit
      ddde3e18. In that commit, the standard
      PKCS #7 ContentInfo/SignedData parsing works fine, but the "old" and
      "Netscape-style" scenarios became broken because I changed them to
      use the original encoded form of certificates without requesting to
      retain this form during parsing. This commit fixes the issue by
      changing the "old" and "Netscape-style" parsing code to retain the
      original encoded form of certificates.
      
      Bug: 30148997
      Change-Id: I63f5f9148325214e571fdf30382d671b6d3f2a63
      11dda1f7
  3. 16 Jul, 2016 1 commit
    • Alex Klyubin's avatar
      Retain original encoded form in certs returned by PKCS7. · e8eab1ee
      Alex Klyubin authored
      This changes sun.security.pkcs.PKCS7 so that the X509Certificate
      instances it returns provide the original encoded form of the
      certificate via Certificate.getEncoded. Prior to this change,
      Certificate.getEncoded of these instances returned the DER form
      of the certificate.
      
      Returning the DER form is normally a good idea, but causes trouble
      when this sun.security.pkcs.PKCS7 is used for parsing APKs' JAR
      signatures. The way Android works is that an APK is permitted to be
      updated only if the encoded form of the update's signing certificate
      is exactly the same as the one of the already installed version of the
      APK. Some APKs use signing certificates which are not DER-encoded,
      which will lead to updates of such APKs to be rejected without this
      fix.
      
      Bug: 30148997
      Change-Id: I44edc63d4923f8fb4f8f7a087611a7496137db52
      e8eab1ee
  4. 14 Jul, 2016 1 commit
    • Tobias Thierer's avatar
      Regression test for HTTP proxy request line · ca1a9dcc
      Tobias Thierer authored
      Adds a test that demonstrates a regression from M in
      the HTTP request line when a proxied connection
      is made. It only affects URLs with empty paths (i.e. ones
      without even a '/' after the host / authority). For
      example, on M the request line for a request to
      new URL("http://myhost").openConnection() would be:
      
      GET http://myhost HTTP/1.1
      
      but on N, without this change, it would be:
      
      GET http://myhost/ HTTP/1.1
      
      This change reverts to the M behavior.
      
      Bug: 29983827
      Change-Id: Ic457230cb9808546e079680b7ace79423ec30544
      (cherry picked from commit d1288ce6)
      ca1a9dcc
  5. 14 Jun, 2016 1 commit
  6. 13 Jun, 2016 1 commit
    • Przemyslaw Szczepaniak's avatar
      Fix Preferences regression. · e34fbfb6
      Przemyslaw Szczepaniak authored
      This change fixes reading filesystem-saved
      java.util.prefs.Preferences.
      
      Due to a bug in XmlSupport, when reading the
      filesystem-saved preferences, the reader was
      throwing an exception. The Android
      implementation of xml parser adds additional
      nodes that were not Elements, this was
      causing a cast exception (the old code was expecting
      only Elements).
      
      FileSystemPreferences class was swallowing exceptions if
      they happen during preferences content reading.
      This changes adds additional logging to prevent this.
      
      Bug: 27645233
      Change-Id: Ieebd8a6a1002111654005bfcc42009b01c89ea70
      (cherry picked from commit 44d29b0a)
      e34fbfb6
  7. 12 Jun, 2016 1 commit
  8. 10 Jun, 2016 8 commits
  9. 09 Jun, 2016 5 commits
  10. 08 Jun, 2016 9 commits
  11. 07 Jun, 2016 5 commits
  12. 06 Jun, 2016 2 commits
  13. 02 Jun, 2016 1 commit
  14. 01 Jun, 2016 2 commits
  15. 31 May, 2016 1 commit