Re: [precis] Precis Java Implementation

Sam Whited <sam@samwhited.com> Tue, 22 December 2015 00:51 UTC

Return-Path: <sam@samwhited.com>
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 99D881ACEE6 for <precis@ietfa.amsl.com>; Mon, 21 Dec 2015 16:51:31 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level:
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, SPF_PASS=-0.001] autolearn=no
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 Z9d-RCSK0oMG for <precis@ietfa.amsl.com>; Mon, 21 Dec 2015 16:51:30 -0800 (PST)
Received: from mail-qg0-x229.google.com (mail-qg0-x229.google.com [IPv6:2607:f8b0:400d:c04::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 20B4C1AC3D2 for <precis@ietf.org>; Mon, 21 Dec 2015 16:51:28 -0800 (PST)
Received: by mail-qg0-x229.google.com with SMTP id c96so100344411qgd.3 for <precis@ietf.org>; Mon, 21 Dec 2015 16:51:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samwhited.com; s=swgoo; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=pjBAj5D74oVx/7xCkOBpDTlAAiMCpA61VrgzEqEMq9o=; b=YBZ96ACGb6SD7JV8d357toeKVIVHa8woMCaO01SGCYXcIoxlX0m9m3NNZHzE96d97r aRoH35zldu09E05/u/pcrVJTZ9f4T8nhdOngtODBJVxitsfchU4ReC/GfSaKUKN6nY71 y4iLeVI4Du578EZIkfCxJl8tW2cJUkx5JsRKc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=pjBAj5D74oVx/7xCkOBpDTlAAiMCpA61VrgzEqEMq9o=; b=Y+BDPhVG/UyKfUhVAesr14zuB4B4qQZohpVCyPqH6dWEMv9McaWmhn0oB1XWVYJRRg sWyKcTrc0ormtlX3lOeKR4pv1XKcojpPen9byMrmccD/IcF2bOvq4Gv91U6svxZrSX+P lYrWhVaFwl+UlWeytR4zR7Yw6pp6Y+cnO4JzTDteJE90tJ5D/+a/U/4V1qJrJ0EkB/U5 zQFpTdVf9UfAfr3Vt6ynOSbzZ8AdbDDkb+dQrGTFOpcad5y+EEC14AntP7eOIp/EjsUS 1Ic3HjNAZh77pNKH3E+EKE+8SXM0O8//zQWkwiQOnRUBfLMMNwr5a/EI+9vYr4FFV1ry 9ODg==
X-Gm-Message-State: ALoCoQnbpc+M+fsZb/22RmaP/XLdM/rqufEu+rQKYMADZItIVr4nzxFA/+DGvpYKHaDrtXAuMYVlyfzT0UII8/xlfppT9cyRFQ==
X-Received: by 10.140.219.136 with SMTP id p130mr30619580qhb.80.1450745488045; Mon, 21 Dec 2015 16:51:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.55.10.133 with HTTP; Mon, 21 Dec 2015 16:50:48 -0800 (PST)
X-Originating-IP: [172.56.6.38]
In-Reply-To: <3012FFC8-1FAD-4C30-8D85-175F4180BC02@gmx.de>
References: <3012FFC8-1FAD-4C30-8D85-175F4180BC02@gmx.de>
From: Sam Whited <sam@samwhited.com>
Date: Mon, 21 Dec 2015 18:50:48 -0600
Message-ID: <CAHbk4R+sR2-W+s3j+9FW8+Za_bNE2Zh120froW=C62uiuv2hSQ@mail.gmail.com>
To: Christian Schudt <christian.schudt@gmx.de>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/precis/Uzl4q3UJcQtmFZfKdTvJE8ZEQ4M>
Cc: Peter Saint-Andre <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: Tue, 22 Dec 2015 00:51:31 -0000

Another quick note:

In your case folding
(https://bitbucket.org/sco0ter/precis/src/ecd82b75f3611dcb37ee0fd8890bfaf02b5caf9f/src/main/java/rocks/xmpp/precis/PrecisProfile.java?at=master&fileviewer=file-view-default#PrecisProfile.java-511),
shouldn't the locale be left undefined? Or does it specify that US
should be used as the default somewhere?

Best,
Sam


On Mon, Dec 21, 2015 at 11:29 AM, 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



-- 
Sam Whited
pub 4096R/54083AE104EA7AD3
https://blog.samwhited.com