Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 10755 invoked from network); 28 Jan 2011 20:13:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jan 2011 20:13:07 -0000 Received: (qmail 47246 invoked by uid 500); 28 Jan 2011 20:13:06 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 47168 invoked by uid 500); 28 Jan 2011 20:13:06 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 47153 invoked by uid 99); 28 Jan 2011 20:13:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 20:13:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jan 2011 20:13:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0SKCj50025635 for ; Fri, 28 Jan 2011 20:12:45 GMT Message-ID: <4805016.272311296245565286.JavaMail.jira@thor> Date: Fri, 28 Jan 2011 15:12:45 -0500 (EST) From: "Robert Newson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Updated: (COUCHDB-969) Basic Auth fails when : is present in password In-Reply-To: <9319666.9851290983383079.JavaMail.jira@thor> 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/COUCHDB-969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson updated COUCHDB-969: ---------------------------------- Fix Version/s: 1.1 1.0.3 > Basic Auth fails when : is present in password > ---------------------------------------------- > > Key: COUCHDB-969 > URL: https://issues.apache.org/jira/browse/COUCHDB-969 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.0.1 > Reporter: Isaac Z. Schlueter > Assignee: Robert Newson > Fix For: 1.0.3, 1.1 > > > To reproduce: > 1. Create a new user "testfunkychars" with password "12:12" > 2. Logging in as this user in futon works, and will show up as "testfunkychars" in the userCtx in a validate_doc_update function. > 3. Presenting a header of "Authorization: Basic dGVzdGZ1bmt5Y2hhcnM6MTI6MTI=" does not work, and shows up as "null" in userCtx. > According to the RFC 2617, the proper way to supply a Basic authorization header is: > Authorization: Basic [basic-credentials] > where [basic-credentials] is the base64 of userid + ":" + pass, where userid is * and pass is *. > Thus, the proper way to construct this header is: > echo -n "testfunkychars:12:12" | base64 > which outputs: dGVzdGZ1bmt5Y2hhcnM6MTI6MTI=. > The only way to log in, however, is to POST the data to /_session, and then supply the cookie. > For now, rather than add the complexity of cookie and session management to my application, I will simply not allow : characters in passwords. It would be better if couchdb handled : characters in passwords. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.