Re: [precis] Precis Java Implementation

Tom Worster <fsb@thefsb.org> Mon, 21 December 2015 21:05 UTC

Return-Path: <fsb@thefsb.org>
X-Original-To: precis@ietfa.amsl.com
Delivered-To: precis@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 882F01ACD4F for <precis@ietfa.amsl.com>; Mon, 21 Dec 2015 13:05:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DraJIjeLV22t for <precis@ietfa.amsl.com>; Mon, 21 Dec 2015 13:05:07 -0800 (PST)
Received: from smtp82.iad3a.emailsrvr.com (smtp82.iad3a.emailsrvr.com [173.203.187.82]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B67501ACD47 for <precis@ietf.org>; Mon, 21 Dec 2015 13:05:07 -0800 (PST)
Received: from smtp11.relay.iad3a.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp11.relay.iad3a.emailsrvr.com (SMTP Server) with ESMTP id 65075100347; Mon, 21 Dec 2015 16:05:06 -0500 (EST)
X-Auth-ID: fsb@thefsb.org
Received: by smtp11.relay.iad3a.emailsrvr.com (Authenticated sender: fsb-AT-thefsb.org) with ESMTPSA id 1DBCA1001FB; Mon, 21 Dec 2015 16:05:06 -0500 (EST)
X-Sender-Id: fsb@thefsb.org
Received: from [10.0.1.2] (c-73-4-147-142.hsd1.ma.comcast.net [73.4.147.142]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:465 (trex/5.5.4); Mon, 21 Dec 2015 16:05:06 -0500
Content-Type: multipart/alternative; boundary="Apple-Mail=_1CA5E7AA-9CFC-42AB-B6A1-54428B05BF95"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Tom Worster <fsb@thefsb.org>
In-Reply-To: <3012FFC8-1FAD-4C30-8D85-175F4180BC02@gmx.de>
Date: Mon, 21 Dec 2015 16:05:05 -0500
Message-Id: <AB5B9D1E-2DA6-4BC5-AAED-A8FDA4E4D66B@thefsb.org>
References: <3012FFC8-1FAD-4C30-8D85-175F4180BC02@gmx.de>
To: Christian Schudt <christian.schudt@gmx.de>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/precis/i1voZJxZLsiyG7HRy0kR7-xXoIo>
Cc: peter@andyet.com, precis@ietf.org
Subject: Re: [precis] Precis Java Implementation
X-BeenThere: precis@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Preparation and Comparison of Internationalized Strings <precis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/precis>, <mailto:precis-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/precis/>
List-Post: <mailto:precis@ietf.org>
List-Help: <mailto:precis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/precis>, <mailto:precis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Dec 2015 21:05:09 -0000

To what extent do you think we could combine our efforts on unit tests? Standard (or at least shared) test vectors would really help, given how hard it is for programers to decode the RFC texts.

I’m willing to redo my tests (https://github.com/tom--/precis <https://github.com/tom--/precis>) to use some TBD machine-readable test spec. If others are interested, I’d contribute to authoring the tests.

Tom

> On Dec 21, 2015, at 12:29 PM, Christian Schudt <christian.schudt@gmx.de> wrote:
> 
> Dear all,
> 
> I’ve been working on an open source Java implementation for the Precis framework since a few weeks and I'd finally like to share it with you:
> 
> https://bitbucket.org/sco0ter/precis
> 
> It supports the core Precis framework (RFC 7564), as well as the username and opaque string profiles (RFC 7613) and the recently published Nickname profile (RFC 7700).
> 
> If anybody of you find some time and is familiar with coding/Java, I’d be happy to receive some review and feedback from you, since I am planning to publish a first version to Maven Central soon.
> 
> There’s still one outstanding issue, which is the correct order of rules (RFC 7564 and the profiles specify them differently, as a consequence an exception is either thrown or not). See my source code comment here:
> 
> https://bitbucket.org/sco0ter/precis/src/ecd82b75f3611dcb37ee0fd8890bfaf02b5caf9f/src/main/java/rocks/xmpp/precis/PrecisProfile.java?at=master&fileviewer=file-view-default#PrecisProfile.java-684
> 
> (I also asked about it here in this mailing list)
> 
> Thanks for feedback.
> 
> — Christian
> _______________________________________________
> precis mailing list
> precis@ietf.org
> https://www.ietf.org/mailman/listinfo/precis