Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BFCC183CA for ; Fri, 24 Apr 2015 05:38:38 +0000 (UTC) Received: (qmail 23607 invoked by uid 500); 24 Apr 2015 05:38:38 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 23558 invoked by uid 500); 24 Apr 2015 05:38:38 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 23547 invoked by uid 99); 24 Apr 2015 05:38:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 05:38:38 +0000 Date: Fri, 24 Apr 2015 05:38:38 +0000 (UTC) From: "Karl Wright (JIRA)" To: dev@manifoldcf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CONNECTORS-1189) SearchBlox connector fails tests on JDK 1.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CONNECTORS-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Karl Wright updated CONNECTORS-1189: ------------------------------------ Component/s: SearchBlox connector > SearchBlox connector fails tests on JDK 1.8 > ------------------------------------------- > > Key: CONNECTORS-1189 > URL: https://issues.apache.org/jira/browse/CONNECTORS-1189 > Project: ManifoldCF > Issue Type: Bug > Components: SearchBlox connector > Affects Versions: ManifoldCF 1.9, ManifoldCF 2.1 > Reporter: Karl Wright > Assignee: Alessandro Benedetti > Priority: Critical > Fix For: ManifoldCF 1.10, ManifoldCF 2.2 > > > The following occurs when you run the SearchBlox connector tests on JDK 1.8: > {code} > run-tests: > [junit] Testsuite: org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest > [junit] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.159 sec > [junit] > [junit] Testcase: testUpdateJsonString(org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest): FAILED > [junit] null expected:<{"[document":{"content":"I am a nice content in english!","uid":"URI","title":"I am a nice title","description":"I am a little tiny description","contenttype":"html","colname":"collection1","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user3","user2","user1"],"share_deny":["user4","user5"],"document_deny":["user52","user42"],"document_allow":["user22","user12","user33"]},"size":"100"},"apikey":"apikey"]}> but was:<{"[apikey":"apikey","document":{"uid":"URI","colname":"collection1","size":"100","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user1","user2","user3"],"document_deny":["user42","user52"],"share_deny":["user5","user4"],"document_allow":["user22","user33","user12"]},"description":"I am a little tiny description","title":"I am a nice title","content":"I am a nice content in english!","contenttype":"html"}]}> > [junit] junit.framework.ComparisonFailure: null expected:<{"[document":{"content":"I am a nice content in english!","uid":"URI","title":"I am a nice title","description":"I am a little tiny description","contenttype":"html","colname":"collection1","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user3","user2","user1"],"share_deny":["user4","user5"],"document_deny":["user52","user42"],"document_allow":["user22","user12","user33"]},"size":"100"},"apikey":"apikey"]}> but was:<{"[apikey":"apikey","document":{"uid":"URI","colname":"collection1","size":"100","meta":{"meta2":["I am META2!"],"meta1":["I am META1!"],"share_allow":["user1","user2","user3"],"document_deny":["user42","user52"],"share_deny":["user5","user4"],"document_allow":["user22","user33","user12"]},"description":"I am a little tiny description","title":"I am a nice title","content":"I am a nice content in english!","contenttype":"html"}]}> > [junit] at org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest.testUpdateJsonString(SearchBloxDocumentTest.java:61) > [junit] > [junit] > BUILD FAILED > /Users/molgun/Downloads/apache-manifoldcf-2.1/dist/connector-build.xml:1219: Test org.apache.manifoldcf.agents.output.searchblox.tests.SearchBloxDocumentTest failed > {code} > That's because the test depends on JDK hash order. It needs to be fixed so that it doesn't depend on hash order. > I will disable the test in trunk and dev_1x for now, but already it is interfering with the release of the latest ManifoldCF. -- This message was sent by Atlassian JIRA (v6.3.4#6332)