Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 59593 invoked from network); 12 Jul 2008 16:30:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2008 16:30:36 -0000 Received: (qmail 37103 invoked by uid 500); 12 Jul 2008 16:30:34 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 37041 invoked by uid 500); 12 Jul 2008 16:30:34 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 37016 invoked by uid 99); 12 Jul 2008 16:30:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jul 2008 09:30:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sergio.bossa@gmail.com designates 209.85.198.246 as permitted sender) Received: from [209.85.198.246] (HELO rv-out-0708.google.com) (209.85.198.246) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Jul 2008 16:29:39 +0000 Received: by rv-out-0708.google.com with SMTP id k29so4142959rvb.0 for ; Sat, 12 Jul 2008 09:30:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=0o6FYeOWjUsiK1stCISacKIRIDj6bmj/ULJbdkvDxNY=; b=PUQI/Y2+shayBzWiEmeSQ9aPPXOLLWFC+20mQ4MQL6PUUauzhfibLWf04g49l+DJ1a 0gHR704lOWlddK9ZzRRyzSNkYWuaCLGS1p/THPt+qq5RoTGyvhtmn+EcAAa3G2Ie8djQ nTfH0wO2oCKu8mqXqxXoJ/nxQ8D7DzShBccEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=gVBl1xStcMJjIXPv7CMy9gIa90Lw0Ttc1EeXBHNuAsnH3jltV0WG/+ggMvXoB9qY/p hU2ZUDr1HbR6TC8XsNe3ITgf4sCqNUqWIGT1VFYP4Bv8ULBRc9Y0wLJoz/+Dfsw0STv1 G819UoNtnbgnfSJzfGwW4BouEUAICADIujVt0= Received: by 10.141.85.13 with SMTP id n13mr5367264rvl.250.1215880201922; Sat, 12 Jul 2008 09:30:01 -0700 (PDT) Received: by 10.141.36.9 with HTTP; Sat, 12 Jul 2008 09:30:01 -0700 (PDT) Message-ID: <806e13040807120930n73b2a307p35332eee27ea48a5@mail.gmail.com> Date: Sat, 12 Jul 2008 18:30:01 +0200 From: "Sergio Bossa" To: abdera-dev@incubator.apache.org Subject: Improve Abdera user feedback on error conditions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, given my current experience in leading a small team made up of developers working for the first time with Abdera, I have some thoughts about Abdera error handling: more specifically, I think that Abdera error handling code should provide better user feedback. Let me give two practical examples. As a first example, if users POST to an Abdera server an Atom entry document *without* specifying the application/atom+xml content type, they get an hard-to-understand UnsupportedOperationException by the log side, and an even harder-to-understand server error (500) by the response side. As a second example, if users POST to an Abdera server an Atom entry document *without* specifying its id, they simply get an empty response: here, understanding is even harder than the first example, even if the error is very simple. Given the lack of true user-oriented feedback, troubleshooting requires to go deep into the code and/or debug it: too much IMHO for first-time users, who get discouraged. So, I think that Abdera should improve both error gathering and error feedback capabilities. What do you think about that? I have some ideas about how to do that, and I'd be more that happy to share and eventually work on them. Let me know. Cheers, Sergio B. -- Sergio Bossa Software Passionate, Java Technologies Specialist and Open Source Enthusiast. Blog : http://sbtourist.blogspot.com Sourcesense - making sense of Open Source : http://www.sourcesense.com Pro-netics s.p.a. : http://www.pronetics.it