harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Fedotov" <alexei.fedo...@gmail.com>
Subject Re: [archive] test failure, odd url
Date Fri, 22 Feb 2008 10:09:53 GMT
Nathan,
Actually this was a test I was patching today. It works perfectly on
my computer, but doesn't perform any connections. To debug this I have
added a print at the catch section (see below), and the print outputs
"we are here" for me. This means the URL is absent, but the test does
not report fail due to IOException, and just ignores URL absence.

    public void testGetJarEntry() throws Exception {
        [...]

        // tests for signed jars
        // test all signed jars in the /Testres/Internal/SignedJars directory
        String jarDirUrl = Support_Resources
                .getResourceURL("/../internalres/signedjars");
        Vector<String> signedJars = new Vector<String>();
        try {
            [...]
        } catch (IOException e) {
            System.out.println("we are here");
            // no list of jars found
        }


On Fri, Feb 22, 2008 at 12:53 PM, Alexei Fedotov
<alexei.fedotov@gmail.com> wrote:
> I have no other data at this moment except the fact that all tests
>  were passing for me. This does not mean that URL works, there may be
>  exclude lists, or something. Sorry, I did not realize this is the same
>  module I'm running tests on.
>
>  On Fri, Feb 22, 2008 at 7:12 AM, Stepan Mishura
>
>
> <stepan.mishura@gmail.com> wrote:
>  > On 2/22/08, Nathan Beyer <nbeyer@gmail.com> wrote:
>  >  > I have OpenDNS configured, so I'm getting this -
>  >  > http://guide.opendns.com/?url=jcltest.apache.org%2Finternalres%2FBug93893-1.crl.
>  >  >
>  >  > I guess that's the issue ... thanks.
>  >  >
>  >
>  >  I think that the issue is the test itself - it is expected to test
>  >  certificates and crls stored in files but there are no required files.
>  >  Also I've checked HARMONY-88 (the origin JIRA for the test) - it
>  >  doesn't contain them too.
>  >
>  >  Thanks,
>  >  Stepan.
>  >
>  >
>  >
>  >  > -Nathan
>  >  >
>  >  > On Thu, Feb 21, 2008 at 3:22 AM, Stepan Mishura
>  >  > <stepan.mishura@gmail.com> wrote:
>  >  > > On 2/21/08, Stepan Mishura <stepan.mishura@gmail.com> wrote:
>  >  > >  > On 2/21/08, Nathan Beyer <nbeyer@gmail.com> wrote:
>  >  > >  > > I'm getting a bunch of failures for various tests connecting
to the
>  >  > >  > > 'jcltest.apache.org' host. Does anyone know how that works?
Is that a
>  >  > >  > > real host?
>  >  > >  > >
>  >  > >  > > I've uploaded my classlib test report here -
>  >  > >  > > http://people.apache.org/~ndbeyer/m5-tests/classlib-r629329.zip
>  >  > >  >
>  >  > >  > Interesting, yes there are failed tests in security module (not
in archive).
>  >  > >  > I'll try to investigate why they failed.
>  >  > >
>  >  > >  I've looked into:
>  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  > >     test_generateCRLLjava_io_InputStream
>  >  > >
>  >  > >  The next update:
>  >  > >  $ svn di
>  >  > >  Index: CertificateFactory4Test.java
>  >  > >  ===================================================================
>  >  > >  --- CertificateFactory4Test.java        (revision 629706)
>  >  > >  +++ CertificateFactory4Test.java        (working copy)
>  >  > >  @@ -116,6 +116,7 @@
>  >  > >                          + "\" were not parsed correctly", crl);
>  >  > >              } catch (IOException e) {
>  >  > >                  // the certificate could not be found, skip it
>  >  > >  +                System.out.println("Couldn't find certificate: " +
>  >  > >  certUrl.toExternalForm());
>  >  > >              } catch (CRLException e) {
>  >  > >                  fail("An exception was thrown while parsing \""
>  >  > >                          + certUrl.toExternalForm() + "\": " + e.getMessage());
>  >  > >
>  >  > >  Gives the next output:
>  >  > >  run-tests-api:
>  >  > >      [echo] Running SECURITY api tests
>  >  > >     [mkdir] Created dir: C:\Apache\Harmony\ClassLib\build\test_report
>  >  > >     [junit] Running
>  >  > >  org.apache.harmony.security.tests.java.security.cert.CertificateFactory4Test
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-1.crl
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug93893-2.crl
>  >  > >     [junit] Couldn't find certificate:
>  >  > >  http://jcltest.apache.org/testres231/../internalres/Bug94404-DER.crl
>  >  > >     [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.594
sec
>  >  > >
>  >  > >  So the test tries to open unreachable URL by
>  >  > >     InputStream is = certUrl.openStream();
>  >  > >  and IOException is thrown.
>  >  > >  But in your case there is no exception and test tries to parse
>  >  > >  certificates and crls.
>  >  > >  You may wish to examine InputStream content.
>  >  > >
>  >  > >  Thanks,
>  >  > >  Stepan.
>  >  > >
>  >  > >
>  >  > >
>  >  > >  >
>  >  > >  > -Stepan.
>  >  > >  >
>  >  > >  > >
>  >  > >  > > -Nathan
>  >  > >  > >
>  >  > >  > > On Mon, Feb 18, 2008 at 11:23 PM, Sean Qiu <sean.xx.qiu@gmail.com>
wrote:
>  >  > >  > > > Hi, Nathan
>  >  > >  > > >  It works well in my machine, windows xp sp2 32.
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >  2008/2/19, Nathan Beyer <ndbeyer@apache.org>:
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > > >
>  >  > >  > > >  > Anyone else seeing a test failure in the archive
module? I'm seeing
>  >  > >  > > >  > this on all of my machines for the latest revision.
>  >  > >  > > >  >
>  >  > >  > > >  > On Feb 16, 2008 10:44 PM, Nathan Beyer <ndbeyer@apache.org>
wrote:
>  >  > >  > > >  > > One of the archive module's tests is making
a URL connection to
>  >  > >  > > >  > > "http://jcltest.apache.org/testres231/../internalres/signedjars".
Is
>  >  > >  > > >  > > something supposed to be intercepting this
and faking out the server?
>  >  > >  > > >  > >
>  >  > >  > > >  > > -Nathan
>  >  > >  > > >  > >
>  >  > >  > > >  >
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >
>  >  > >  > > >  --
>  >  > >  > > >  Sean Qiu
>  >  > >  > > >  http://xiaoxia.turendui.com
>  >  > >  > > >
>  >  > >  > >
>  >  > >  >
>  >  > >
>  >  >
>  >
>
>
>
>  --
>  With best regards,
>  Alexei
>



-- 
With best regards,
Alexei

Mime
View raw message