hines | 21 May 2013 23:12
Favicon

Beware of Biggest Fake conference in computer science


Beware of Biggest Fake conference in computer science

If you have any plans of participating in the world’s biggest 
fake computer science conference then you must look at the website https://sites.google.com/site/worlddump1

If the above link didn't work then see

http://worldcomp-fake-bogus.blogspot.com  
or
https://sites.google.com/site/dumpconf
or Google search using keywords: worldcomp, fake

Michael McMahon | 10 May 2013 13:34
Picon
Favicon

Code review: 8010464: Evolve java networking same origin policy

Hi,

This is the webrev for the HttpURLPermission addition.
As well as the new permission class, the change
includes the use of the permission in java.net.HttpURLConnection.

The code basically checks for a HttpURLPermission in plainConnect(),
getInputStream() and getOutputStream() for the request and if
the caller has permission the request is executed in a doPrivileged()
block. When the limited doPrivileged feature is integrated, I will
change the doPrivileged() call to limit the privilege elevation to a single
SocketPermission (as shown in the code comments).

The webrev is at http://cr.openjdk.java.net/~michaelm/8010464/webrev.1/

Thanks
Michael

Matthew Hall | 10 May 2013 03:38
Gravatar

SSL/TLS cipher selection

Hello,

I discovered some unexpected behavior in how Java chooses cipher suites for 
SSL/TLS. I wanted to know if its method of cipher suite selection is 
documented somewhere so I could understand why it's not working right for me 
in certain cases. Notably, if I configure this preference list:

    public static String[] CIPHERS = {
        "TLS_RSA_WITH_AES_128_CBC_SHA",
        "SSL_RSA_WITH_3DES_EDE_CBC_SHA",
        "TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
        "TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
        "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA",
        "TLS_RSA_WITH_AES_256_CBC_SHA",
        "TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
    };

and then use the default "openssl ciphers" list for OpenSSL 1.0.1e, only 
SSL_RSA_WITH_3DES_EDE_CBC_SHA gets selected even though the server preference 
places it below TLS_RSA_WITH_AES_128_CBC_SHA, which, while allowed by the RFC, 
is not what is normally done, and will reduce performance quite a bit.

When you look at the "openssl ciphers" list, you can see that they ranked 3DES 
above AES128 on their side, but it would really be better if the server 
preference took precedence instead of the client preference.

Another thing which would be nice to fix, would be if the javax.net.debug=ssl 
output would print the server-side cipher preferences in effect as well as the 
client-side ones like it does presently.

(Continue reading)

Brian Call | 9 May 2013 22:49

Non-standard socket options?

Hi Guys,

My name is Brian Call and I'm a software developer for Sotera Wireless. I'm currently developing a relatively complex multicast application using the jdk7 selector-based I/O for multicast and I've run in to a pretty major hurdle. By "complex", I mean that I have a single bound socket joining multiple groups and it's critical that the bound socket only receive traffic for groups it has joined. I'm hitting the "promiscuous" traffic problem... and while bound to 0.0.0.0 on linux I'm getting traffic for all multicast groups, even if they were not specifically joined. In essence, there is no IP stack-level filtering for datagrams by joined group on linux unless you explicitly tell the stack to do so. Solaris and windows does the filtering by default and Linux does not. 

Is there any way to make use of a non-standard socket option in Java? Having spoken with Neil Horman lead networking developer over at Red Hat, he mentioned that by passing in the socket option IP_MULTICAST_ALL with a value of '0' it will disable UDP multiplexing on Linux when bound to the wildcard address. This would definitely be the hot move... 

If you have any insight into resolving the promiscuous multicast traffic problem in Java, I'd be more than grateful. 

Thanks in advance for your help!

Blessings,

Brian Call
brian.call-MIrZLZ0+oP3Wpu6QEFMNjGGXanvQGlWp@public.gmane.orgm

PRIVILEGED AND CONFIDENTIAL COMMUNICATION: This electronic transmission, and any documents attached hereto, may contain confidential and/or legally privileged information.  The information is intended only for use by the recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of information received in error is strictly prohibited.
Piotr Bzdyl | 7 May 2013 15:25
Gravatar

Incorrect handling of HTTP/1.1 "Expect: 100-continue" in HttpURLConnection

Hello,

This is my first post to this mailing list so I would like to say "Hi".

The reason I subscribed and I am writing is that I believe I have found a bug in sun.*.HttpURLConnection class (in particular how it handles Expect: 100-continue header). I have already submitted a bug at bugs.sun.com but after almost 3 weeks I still cannot access the bug and check its status (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=9001773).

I would like to ask if bugs.sun.com is alive or if it is possible to report the bug in the OpenJDK project or is there any other alternative procedure for submitting bug reports.

Best regards,
Piotr Bzdyl
Miika Komu | 4 May 2013 14:22
Picon
Picon

suggestions for improvement in java.net APIs

Howdy,

we investigated the APIs of java.net (OpenJDK Build b147) and published
our findings in Ottawa Linux Symposium 2012:

http://nw.dreamhosters.com/ols/ols2012/ols2012-komu.pdf

We two types of improvements to java.net disclosed in full detail in
section 4.3.1 of the publication. First, we suggest to fix a bug related
to UDP in multihoming scenarios (i.e., a host has multiple IP
addresses). Second, we suggest improvements that can improve either the
user experience (i.e. by improving latency in IPv6 environments) or
developers (after all, frameworks are a conveniency for the developers).
The suggestions for improvements are briefly summarized below.

Multihoming bug
---------------
* R3.2: Server-side multihoming for UDP does not work properly. The
framework should use SO_BINDTODEVICE option or sendmsg()/recvmsg()
interfaces in a proper way.

Suggested improvements (for better end-user or developer experience)
--------------------------------------------------------------------
* R2.2: The framework does not support parallel DNS look ups over IPv4
and IPv6 to optimize latency
* R3.3: The framework does not support parallel connect() over IPv4 and
IPv6 to minimize the latency for connection set-up

Please refer to  section 4.3.4 in the publication for a more elaborate
discussion of the improvements.

John Zavgren | 2 May 2013 16:35
Picon
Favicon

RFR JDK7188517

Greetings: Please consider the following change to the cookie constructor: http://cr.openjdk.java.net/~jzavgren/7188517/webrev.01/ Basically there are two issues: 1.) the existing cookie constructor was allowing cookie names to have a dollar sign as their leading character, which is "illegal". The constructor code was modified to disallow these illegal names. 2.) the API document (notice the specdiff: http://cr.openjdk.java.net/~jzavgren/7188517/specDiff/) prohibited the use of cookie names that are one of the tokens reserved for use by the cookie protocol, and this restriction is not necessary. Thanks! John Zavgren

Chris Hegarty | 30 Apr 2013 21:42
Picon
Favicon

RFR 6594296: NetworkInterface.getHardwareAddress returns zero length byte array

This is a conformance issue where getHardwareAddress may incorrectly 
return a zero length byte array, rather than null. The spec allows for 
null, in fact it requires it for such cases. The issue is reproducible 
with newer versions of Windows, with IPv6 enabled.

The problem is in src/windows/native/java/net/NetworkInterface_winXP.c. 
PhysicalAddressLength can be 0, in which case the byte array should not 
be created, rather than creating a 0 length byte[].

 From msdn:
   "PhysicalAddressLength

    Type: DWORD

    The length, in bytes, of the address specified in the
    PhysicalAddress member. For interfaces that do not have
    a data-link layer, this value is zero."

Webrev:
   http://cr.openjdk.java.net/~chegar/6594296/webrev.00/webrev/

-Chris.

Michael McMahon | 26 Apr 2013 16:36
Picon
Favicon

API change for 8010464: Evolve java networking same origin policy

Hi,

The is the suggested API for one of the two new JEPs recently submitted.

This is for JEP 184: HTTP URL Permissions

The idea here is to define a higher level http permission class
which "knows about" URLs, HTTP request methods and headers.
So, it is no longer necessary to grant blanket permission for any kind
of TCP connection to a host/port. Instead a HttpURLPermission restricts
access to only the Http protocol itself. Restrictions can also be imposed
based on URL paths, specific request methods and request headers.

The API change can be seen at the URL below:

http://cr.openjdk.java.net/~michaelm/8010464/api/

In addition to defining a new permission class, HttpURLConnection
is modified to make use of it and the documentation change describing this
can be seen at the link below:

http://cr.openjdk.java.net/~michaelm/8010464/api/blender.html

All comments welcome.

Thanks

Michael.

Salter, Thomas A | 18 Apr 2013 23:31
Picon
Favicon

SocketImplFactory

Are there any real-life examples of using SocketImplFactory?

I was hoping to find a way to redirect selected sockets, by IP address, to a different implementation of
sockets that could take advantage of a high-speed connection.  For this to work, I'd need to be able to
delegate all other sockets back to the standard implementation.  Unfortunately, it appears that most of
the classes I'd need to access are package-private so this approach wouldn't work.

A requirement is that applications would not require any source changes.  They would be unmodified and just
have things redirect dynamically when they create a Socket or ServerSocket.  I was thinking that this
feature would be enabled through a class that loads as a service and calls setSocketFactory.

Inheriting from Socket or ServerSocket doesn't help since I can't change the applications and I can't make
those classes revert to the default implementation when I don't want to use mine.

Is there any hope of something like this working?

Tom Salter  |  Software Engineer  |  Java & Middleware Development 
Unisys  |  2476 Swedesford Road  |  Malvern, PA  19355   |  610-648-2568 |  N385-2568 

John Zavgren | 18 Apr 2013 22:56
Picon
Favicon

RFR-JDK8012108

Greetings:

I fixed a case in the windows native code where calloc() was being used without checking it's returned value.

http://cr.openjdk.java.net/~jzavgren/8012108/webrev.01/

Thanks!
John Zavgren

Gmane