Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: River_2.2.0
    • Fix Version/s: None
    • Component/s: net_jini_url
    • Security Level: Security risk, visible to anyone (Issues identified as security risk but for which a patch is available)
    • Labels:
      None
    • Environment:

      JDK1.6, Solaris 10

      Description

      jtreg test trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java

      Test 9: TestEqual: httpmd://foo:88/bar/baz;p1=v1;md5=abcd?q#r, httpmd://alpha:88/bar/baz;p1=v1;md5=abcd?q#r
      FAIL: Should be: false
      Result: true

        Activity

        Hide
        Peter Firmstone added a comment -

        The equals implementation is performed by java.net.URLStreamHandler

        #Test Results (version 2)
        #Fri Nov 12 15:39:15 EST 2010
        #checksum:7d2be0e370d9434b
        #----testdescription----
        $file=/opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
        $root=/opt/src/river/trunk/qa/jtreg
        keywords=othervm
        library=../../../../unittestlib
        run=USER_SPECIFIED build UnitTestUtilities BasicTest Test\nUSER_SPECIFIED main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual\n
        source=TestEqual.java
        title=Tests equal on httpmd: URLs

        #----environment----

        #----testresult----
        description=file:/opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
        end=Fri Nov 12 15:39:15 EST 2010
        environment=regtest
        execStatus=Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure
        javatestOS=SunOS 5.10 (sparc)
        javatestVersion=4.1.3a
        script=com.sun.javatest.regtest.RegressionScript sections=script_messages build compile build compile main
        start=Fri Nov 12 15:39:01 EST 2010
        test=net/jini/url/httpmd/TestEqual.java
        work=/opt/src/river/trunk/qa/jtreg/JTwork/net/jini/url/httpmd

        #section:script_messages
        ---------messages:(4/193)---------
        JDK under test: (/usr/jdk/jdk1.5.0_15)
        java version "1.5.0_15"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
        Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)

        #section:build
        ---------messages:(3/151)---------
        command: build UnitTestUtilities BasicTest Test
        reason: User specified action: run build UnitTestUtilities BasicTest Test elapsed time (seconds): 5.6
        result: Passed. Build successful

        #section:compile
        ---------messages:(3/367)---------
        command: compile /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/UnitTestUtilities.java /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/BasicTest.java /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/Test.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 5.596
        ---------System.out:(0/0)---------
        ---------System.err:(0/0)---------
        result: Passed. Compilation successful

        #section:build
        ---------messages:(3/94)---------
        command: build TestEqual
        reason: Named class compiled on demand
        elapsed time (seconds): 5.158
        result: Passed. Build successful

        #section:compile
        ---------messages:(3/162)---------
        command: compile /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 5.156
        ---------System.out:(0/0)---------
        ---------System.err:(0/0)---------
        result: Passed. Compilation successful

        #section:main
        ---------messages:(3/197)---------
        command: main -Djava.protocol.handler.pkgs=net.jini.urlTestEqual
        reason: User specified action: run main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual elapsed time (seconds): 2.759
        ---------System.out:(11/264)---------

            • Start test: Fri Nov 12 15:39:14 EST 2010
              Test 9: TestEqual: httpmd://foo:88/bar/baz;p1=v1;md5=abcd?q#r, httpmd://alpha:88/bar/baz;p1=v1;md5=abcd?q#r
              FAIL: Should be: false
              Result: true
            • Test results:
            • PASS: 39
            • FAIL: 1
            • Time: 328 ms

        ---------System.err:(14/730)---------
        Test$FailedException: 1 test failure
        at UnitTestUtilities.test(UnitTestUtilities.java:117)
        at TestEqual.main(TestEqual.java:154)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:595)

        JavaTest Message: Test threw exception: Test$FailedException: 1 test failure
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: Test$FailedException: 1 test failure
        result: Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure

        test result: Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure

        Show
        Peter Firmstone added a comment - The equals implementation is performed by java.net.URLStreamHandler #Test Results (version 2) #Fri Nov 12 15:39:15 EST 2010 #checksum:7d2be0e370d9434b #---- testdescription ---- $file=/opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java $root=/opt/src/river/trunk/qa/jtreg keywords=othervm library=../../../../unittestlib run=USER_SPECIFIED build UnitTestUtilities BasicTest Test\nUSER_SPECIFIED main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual\n source=TestEqual.java title=Tests equal on httpmd: URLs #---- environment ---- #---- testresult ---- description= file:/opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java end=Fri Nov 12 15:39:15 EST 2010 environment=regtest execStatus=Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure javatestOS=SunOS 5.10 (sparc) javatestVersion=4.1.3a script=com.sun.javatest.regtest.RegressionScript sections=script_messages build compile build compile main start=Fri Nov 12 15:39:01 EST 2010 test=net/jini/url/httpmd/TestEqual.java work=/opt/src/river/trunk/qa/jtreg/JTwork/net/jini/url/httpmd #section:script_messages --------- messages:(4/193) --------- JDK under test: (/usr/jdk/jdk1.5.0_15) java version "1.5.0_15" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04) Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode) #section:build --------- messages:(3/151) --------- command: build UnitTestUtilities BasicTest Test reason: User specified action: run build UnitTestUtilities BasicTest Test elapsed time (seconds): 5.6 result: Passed. Build successful #section:compile --------- messages:(3/367) --------- command: compile /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/UnitTestUtilities.java /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/BasicTest.java /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/../../../../unittestlib/Test.java reason: .class file out of date or does not exist elapsed time (seconds): 5.596 --------- System.out:(0/0) --------- --------- System.err:(0/0) --------- result: Passed. Compilation successful #section:build --------- messages:(3/94) --------- command: build TestEqual reason: Named class compiled on demand elapsed time (seconds): 5.158 result: Passed. Build successful #section:compile --------- messages:(3/162) --------- command: compile /opt/src/river/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java reason: .class file out of date or does not exist elapsed time (seconds): 5.156 --------- System.out:(0/0) --------- --------- System.err:(0/0) --------- result: Passed. Compilation successful #section:main --------- messages:(3/197) --------- command: main -Djava.protocol.handler.pkgs=net.jini.urlTestEqual reason: User specified action: run main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual elapsed time (seconds): 2.759 --------- System.out:(11/264) --------- Start test: Fri Nov 12 15:39:14 EST 2010 Test 9: TestEqual: httpmd://foo:88/bar/baz;p1=v1;md5=abcd?q#r, httpmd://alpha:88/bar/baz;p1=v1;md5=abcd?q#r FAIL: Should be: false Result: true Test results: PASS: 39 FAIL: 1 Time: 328 ms --------- System.err:(14/730) --------- Test$FailedException: 1 test failure at UnitTestUtilities.test(UnitTestUtilities.java:117) at TestEqual.main(TestEqual.java:154) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:595) JavaTest Message: Test threw exception: Test$FailedException: 1 test failure JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: Test$FailedException: 1 test failure result: Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure test result: Failed. Execution failed: `main' threw exception: Test$FailedException: 1 test failure
        Hide
        Tom Hobbs added a comment -

        Interestingly this test passes on Windows. I'll try it on my Linux machine later. I do get a bunch of other failings on my Windows box though, but I suspect my setup rather than the code to be causing that.

        #Test Results (version 2)
        #Wed Nov 24 11:16:48 GMT 2010
        #checksum:750f205e6a2bf09c
        #----testdescription----
        $file=C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd
        TestEqual.java

        $root=C:\\development\\projects\\River-Fresh\\trunk\\qa
        jtreg

        keywords=othervm
        library=../../../../unittestlib
        run=USER_SPECIFIED build UnitTestUtilities BasicTest Test\r\nUSER_SPECIFIED main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual\r\n
        source=TestEqual.java
        title=Tests equal on httpmd: URLs

        #----environment----

        #----testresult----
        description=file:/C:/development/projects/River-Fresh/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java
        end=Wed Nov 24 11:16:48 GMT 2010
        environment=regtest
        execStatus=Passed. Execution successful
        javatestOS=Windows XP 5.1 (x86)
        javatestVersion=4.1.4
        {{script=com.sun.javatest.regtest.RegressionScript }}
        sections=script_messages build compile build compile main
        start=Wed Nov 24 11:16:27 GMT 2010
        test=net/jini/url/httpmd/TestEqual.java
        work=C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\JTwork\\net\\jini\\url
        httpmd

        #section:script_messages
        ---------messages: (4/208)*---------
        JDK under test: (C:\\Progra~1\\Java
        jdk1.5.0_13)

        java version "1.5.0_13"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
        Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode)

        #section:build
        ---------messages: (3/156)---------
        command: build UnitTestUtilities BasicTest Test
        {{reason: User specified action: run build UnitTestUtilities BasicTest Test }}
        elapsed time (seconds): 0.656
        result: Passed. Build successful

        #section:compile
        ---------messages: (3/481)*---------
        command: compile C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib
        UnitTestUtilities.java C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib
        BasicTest.java C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib
        Test.java

        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.656
        ---------System.out: (0/0)---------
        ---------System.err: (0/0)---------
        result: Passed. Compilation successful

        #section:build
        ---------messages: (3/97)---------
        command: build TestEqual
        reason: Named class compiled on demand
        elapsed time (seconds): 0.547
        result: Passed. Build successful

        #section:compile
        ---------messages: (3/197)*---------
        command: compile C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd
        TestEqual.java

        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.547
        ---------System.out: (0/0)---------
        ---------System.err: (0/0)---------
        result: Passed. Compilation successful

        #section:main
        ---------messages: (3/201)---------
        command: main -Djava.protocol.handler.pkgs=net.jini.url TestEqual
        {{reason: User specified action: run main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual }}
        elapsed time (seconds): 19.609
        ---------System.out: (8/124)---------

        *** Start test: Wed Nov 24 11:16:28 GMT 2010

        *** Test results:
        *** PASS: 40
        *** FAIL: 0
        *** Time: 19453 ms

        ---------System.err: (1/16)---------
        STATUS:Passed.
        result: Passed. Execution successful

        test result: Passed. Execution successful

        Show
        Tom Hobbs added a comment - Interestingly this test passes on Windows. I'll try it on my Linux machine later. I do get a bunch of other failings on my Windows box though, but I suspect my setup rather than the code to be causing that. #Test Results (version 2) #Wed Nov 24 11:16:48 GMT 2010 #checksum:750f205e6a2bf09c #---- testdescription ---- $file=C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd TestEqual.java $root=C:\\development\\projects\\River-Fresh\\trunk\\qa jtreg keywords=othervm library=../../../../unittestlib run=USER_SPECIFIED build UnitTestUtilities BasicTest Test\r\nUSER_SPECIFIED main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual\r\n source=TestEqual.java title=Tests equal on httpmd: URLs #---- environment ---- #---- testresult ---- description= file:/C:/development/projects/River-Fresh/trunk/qa/jtreg/net/jini/url/httpmd/TestEqual.java end=Wed Nov 24 11:16:48 GMT 2010 environment=regtest execStatus=Passed. Execution successful javatestOS=Windows XP 5.1 (x86) javatestVersion=4.1.4 {{script=com.sun.javatest.regtest.RegressionScript }} sections=script_messages build compile build compile main start=Wed Nov 24 11:16:27 GMT 2010 test=net/jini/url/httpmd/TestEqual.java work=C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\JTwork\\net\\jini\\url httpmd #section:script_messages --------- messages: (4/208)* --------- JDK under test: (C:\\Progra~1\\Java jdk1.5.0_13) java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05) Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode) #section:build --------- messages: (3/156) --------- command: build UnitTestUtilities BasicTest Test {{reason: User specified action: run build UnitTestUtilities BasicTest Test }} elapsed time (seconds): 0.656 result: Passed. Build successful #section:compile --------- messages: (3/481)* --------- command: compile C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib UnitTestUtilities.java C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib BasicTest.java C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd\\..\\..\\..\\..\\unittestlib Test.java reason: .class file out of date or does not exist elapsed time (seconds): 0.656 --------- System.out: (0/0) --------- --------- System.err: (0/0) --------- result: Passed. Compilation successful #section:build --------- messages: (3/97) --------- command: build TestEqual reason: Named class compiled on demand elapsed time (seconds): 0.547 result: Passed. Build successful #section:compile --------- messages: (3/197)* --------- command: compile C:\\development\\projects\\River-Fresh\\trunk\\qa\\jtreg\\net\\jini\\url\\httpmd TestEqual.java reason: .class file out of date or does not exist elapsed time (seconds): 0.547 --------- System.out: (0/0) --------- --------- System.err: (0/0) --------- result: Passed. Compilation successful #section:main --------- messages: (3/201) --------- command: main -Djava.protocol.handler.pkgs=net.jini.url TestEqual {{reason: User specified action: run main/othervm -Djava.protocol.handler.pkgs=net.jini.url TestEqual }} elapsed time (seconds): 19.609 --------- System.out: (8/124) --------- *** Start test: Wed Nov 24 11:16:28 GMT 2010 *** Test results: *** PASS: 40 *** FAIL: 0 *** Time: 19453 ms --------- System.err: (1/16) --------- STATUS:Passed. result: Passed. Execution successful test result: Passed. Execution successful

          People

          • Assignee:
            Unassigned
            Reporter:
            Peter Firmstone
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development