You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Aaron Quint <aa...@quirkey.com> on 2010/02/08 06:18:20 UTC

Upgrading an existing Couch's authentication

Hey All

Once again, props to @jchris for getting the authentication up to
snuff. I was able to get a simple authentication system built for my
little couchapp Swinger: http://github.com/quirkey/swinger
Its just so awesome that I can finally have a _fully_ functioning app
with user accounts, without a line of server side code. (!!!)

So the question:
I have couchdb on a server to host the older version of my app, and I
wanted to push the new version with logins/etc. It _was_ running
~0.10, but now I've tried to upgrade it to trunk to get the auth
goodies. I'm realizing now that theres some differences between the
data, user data format between 0.10 and trunk. I'm wondering if theres
an easy way to upgrade the old data, or at least just wipe that piece
without having to completely clear and start the data from scratch?

--AQ

Aaron Quint
http://www.quirkey.com

Re: Upgrading an existing Couch's authentication

Posted by Aaron Quint <aa...@quirkey.com>.
Oh, Also - the app is pushed and running on trunk on my dev server here:

http://c.ixxr.net/swinger/_design/swinger/index.html#/

Still a bunch of clean up to do around login/validations, but the
basics of login/auth work. (Best viewed in webkit [CSS Gradients])
--AQ

Aaron Quint
http://www.quirkey.com



On Tue, Feb 9, 2010 at 12:28 PM, Aaron Quint <aa...@quirkey.com> wrote:
> Hey All
>
> @J Chris: Thanks - I figured it out. I had to delete the old "users"
> DB and also merge my default and local.ini with the new ones generated
> by trunk. I also was having some issues yesterday with every attempted
> update throwing a UTF-8 Invalid JSON error, but upgrading to svn trunk
> (as of yesterday) seemed to fix it. I would love to chat more about
> the auth stuff at some point, I'm curious how cookies are being
> generated/stored. One thing I've noticed is that if I try logging in
> to the same account on multiple browsers, it seems to boot me on
> reload on one of the browsers. I don't know if this is a feature or a
> bug.
>
> @Benoit, @Brian: If you pull the latest from the github repo, the Bulk
> Save should be fixed. You need to be logged in as an admin in order to
> push the doc. I fixed the validate function so it should work for
> couchapp pushes.
>
> @Bob: Glad you're using it! I wanted to get it up to speed with
> Couchapp/CouchDB so I can use it for upcoming talks. You're probably
> not seeing your docs because theyre missing a 'user' attribute. Sort
> of a pain, but if you go edit them in futon it should work.
>
> Thanks,
> --AQ
>
> Aaron Quint
> http://www.quirkey.com
>
>
>
> On Tue, Feb 9, 2010 at 7:24 AM, Benoit Chesneau <bc...@gmail.com> wrote:
>> On Tue, Feb 9, 2010 at 1:20 PM, Brian Candler <B....@pobox.com> wrote:
>>>> >> Once again, props to @jchris for getting the authentication up to
>>>> >> snuff. I was able to get a simple authentication system built for my
>>>> >> little couchapp Swinger: http://github.com/quirkey/swinger
>>>
>>> I'm keen to try this, but I'm getting the following error:
>>>
>>> $ couchapp push . http://localhost:5984/swinger
>>> [INFO] Visit your CouchApp here:
>>> http://localhost:5984/swinger/_design/swinger/index.html
>>> [CRITICAL]
>>> Traceback (most recent call last):
>>>  File "/usr/bin/couchapp", line 5, in <module>
>>>    pkg_resources.run_script('Couchapp==0.5.3', 'couchapp')
>>>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 452, in run_script
>>>    self.require(requires)[0].run_script(script_name, ns)
>>>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 1179, in run_script
>>>    execfile(script_filename, namespace, namespace)
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/EGG-INFO/scripts/couchapp", line 28, in <module>
>>>    couchapp.dispatch.run()
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 29, in run
>>>    sys.exit(dispatch(sys.argv[1:]))
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 40, in dispatch
>>>    return _dispatch(ui, args)
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 85, in _dispatch
>>>    return fun(ui, path, *args, **opts)
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 80, in push
>>>    pushdocs(ui, docspath, dest, *args, **opts)
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 171, in pushdocs
>>>    db.save_docs(docs1)
>>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/couchdbclient.py", line 443, in save_docs
>>>    raise BulkSaveError(errors)
>>> couchapp.errors.BulkSaveError
>>>
>>> I have couchapp installed from git, and I had also uninstalled the
>>> couchapp-0.1.7 gem to be on the safe side.  couchapp passes its own
>>> testsuite.
>>>
>>> Having said that, the app does appear to work at first glance, although the
>>> "welcome" presentation it invites me to view isn't there.
>>>
>>> couchdb is current trunk:
>>>
>>> $ curl http://127.0.0.1:5984/
>>> {"couchdb":"Welcome","version":"0.11.0bcc31819f-git"}
>>>
>>> Regards,
>>>
>>> Brian.
>>>
>>
>>  I tried to debug this error on irc with latest trunk. It seems that
>> this is related to the validation function. First you need to use an
>> authenticated usre to send data and second the welcome.json doc lacks
>> of a "user" member. I didn't go further yesterday, but imo it should
>> solve all the stuff.
>>
>> - benoit
>>
>

Re: Upgrading an existing Couch's authentication

Posted by James Marca <jm...@translab.its.uci.edu>.
On Tue, Feb 09, 2010 at 12:28:58PM -0500, Aaron Quint wrote:
> Hey All
> 
> @J Chris: Thanks - I figured it out. I had to delete the old "users"
> DB and also merge my default and local.ini with the new ones generated
> by trunk. I also was having some issues yesterday with every attempted
> update throwing a UTF-8 Invalid JSON error, but upgrading to svn trunk
> (as of yesterday) seemed to fix it. I would love to chat more about

I hope I'm not stating the obvious, but I ran into this when upgrading
couchdb too.  Be careful that you've really gotten rid of old versions
of couchdb.  The "fix" might be temporary, as it has something to do
with how Erlang finds the right libraries to run.

If you're on a *nix-type box, run something like 

find /usr/lib/ -name \*couch* 

(or /usr/local/lib/, etc etc) and make sure there aren't old versions
laying around.

And I too think swinger is a cool project!

James Marca


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


Re: Upgrading an existing Couch's authentication

Posted by Aaron Quint <aa...@quirkey.com>.
Upgrading to the very latest svn trunk fixed my remote and remote push. Thanks!
--AQ

Aaron Quint
http://www.quirkey.com



On Tue, Feb 9, 2010 at 12:32 PM, Benoit Chesneau <bc...@gmail.com> wrote:
> On Tue, Feb 9, 2010 at 6:28 PM, Aaron Quint <aa...@quirkey.com> wrote:
>
>>
>> @Benoit, @Brian: If you pull the latest from the github repo, the Bulk
>> Save should be fixed. You need to be logged in as an admin in order to
>> push the doc. I fixed the validate function so it should work for
>> couchapp pushes.
>>
> Thanks :) Will try later tonight. Did it solve remote push too ?
>
> - benoit
>

Re: Upgrading an existing Couch's authentication

Posted by Benoit Chesneau <bc...@gmail.com>.
On Tue, Feb 9, 2010 at 6:28 PM, Aaron Quint <aa...@quirkey.com> wrote:

>
> @Benoit, @Brian: If you pull the latest from the github repo, the Bulk
> Save should be fixed. You need to be logged in as an admin in order to
> push the doc. I fixed the validate function so it should work for
> couchapp pushes.
>
Thanks :) Will try later tonight. Did it solve remote push too ?

- benoit

Re: Upgrading an existing Couch's authentication

Posted by Brian Candler <B....@pobox.com>.
On Tue, Feb 09, 2010 at 02:39:52PM -0500, Aaron Quint wrote:
> Yeah, I definitely pushed - you must have the latest copy. I think the
> BulkSave Error happens if you're not logged in.

I was in admin party mode. But if I create and use an explicit admin, it's OK:

$ couchapp push . http://admin:admin@localhost:5984/swinger
[INFO] Visit your CouchApp here:
http://admin:admin@localhost:5984/swinger/_design/swinger/index.html
$ 

... and I get the welcome presentation too.

Very cool app! The fade/slide transitions don't work for me (under either
Firefox or Chrome) if I hit the right-arrow button; I get a blank screen
until I press F5.  But I can certainly live without those.

Regards,

Brian.

Re: Upgrading an existing Couch's authentication

Posted by Aaron Quint <aa...@quirkey.com>.
Yeah, I definitely pushed - you must have the latest copy. I think the
BulkSave Error happens if you're not logged in.  I'm hanging out in
#couchapp and #couchdb if its still not working,
--AQ

Aaron Quint
http://www.quirkey.com



On Tue, Feb 9, 2010 at 1:10 PM, Brian Candler <B....@pobox.com> wrote:
> On Tue, Feb 09, 2010 at 12:28:58PM -0500, Aaron Quint wrote:
>> @Benoit, @Brian: If you pull the latest from the github repo, the Bulk
>> Save should be fixed.
>
> Did you push it?
>
> brian@zino:~/git/swinger$ git pull
> Already up-to-date.
> brian@zino:~/git/swinger$ grep url .git/config
>        url = git://github.com/quirkey/swinger.git
> brian@zino:~/git/swinger$ cd ../couchapp
> brian@zino:~/git/couchapp$ git pull
> Already up-to-date.
> brian@zino:~/git/couchapp$ grep url .git/config
>        url = git://github.com/couchapp/couchapp.git
>
> B.
>

Re: Upgrading an existing Couch's authentication

Posted by Brian Candler <B....@pobox.com>.
On Tue, Feb 09, 2010 at 12:28:58PM -0500, Aaron Quint wrote:
> @Benoit, @Brian: If you pull the latest from the github repo, the Bulk
> Save should be fixed.

Did you push it?

brian@zino:~/git/swinger$ git pull
Already up-to-date.
brian@zino:~/git/swinger$ grep url .git/config
	url = git://github.com/quirkey/swinger.git
brian@zino:~/git/swinger$ cd ../couchapp
brian@zino:~/git/couchapp$ git pull
Already up-to-date.
brian@zino:~/git/couchapp$ grep url .git/config 
	url = git://github.com/couchapp/couchapp.git

B.

Re: Upgrading an existing Couch's authentication

Posted by Aaron Quint <aa...@quirkey.com>.
Hey All

@J Chris: Thanks - I figured it out. I had to delete the old "users"
DB and also merge my default and local.ini with the new ones generated
by trunk. I also was having some issues yesterday with every attempted
update throwing a UTF-8 Invalid JSON error, but upgrading to svn trunk
(as of yesterday) seemed to fix it. I would love to chat more about
the auth stuff at some point, I'm curious how cookies are being
generated/stored. One thing I've noticed is that if I try logging in
to the same account on multiple browsers, it seems to boot me on
reload on one of the browsers. I don't know if this is a feature or a
bug.

@Benoit, @Brian: If you pull the latest from the github repo, the Bulk
Save should be fixed. You need to be logged in as an admin in order to
push the doc. I fixed the validate function so it should work for
couchapp pushes.

@Bob: Glad you're using it! I wanted to get it up to speed with
Couchapp/CouchDB so I can use it for upcoming talks. You're probably
not seeing your docs because theyre missing a 'user' attribute. Sort
of a pain, but if you go edit them in futon it should work.

Thanks,
--AQ

Aaron Quint
http://www.quirkey.com



On Tue, Feb 9, 2010 at 7:24 AM, Benoit Chesneau <bc...@gmail.com> wrote:
> On Tue, Feb 9, 2010 at 1:20 PM, Brian Candler <B....@pobox.com> wrote:
>>> >> Once again, props to @jchris for getting the authentication up to
>>> >> snuff. I was able to get a simple authentication system built for my
>>> >> little couchapp Swinger: http://github.com/quirkey/swinger
>>
>> I'm keen to try this, but I'm getting the following error:
>>
>> $ couchapp push . http://localhost:5984/swinger
>> [INFO] Visit your CouchApp here:
>> http://localhost:5984/swinger/_design/swinger/index.html
>> [CRITICAL]
>> Traceback (most recent call last):
>>  File "/usr/bin/couchapp", line 5, in <module>
>>    pkg_resources.run_script('Couchapp==0.5.3', 'couchapp')
>>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 452, in run_script
>>    self.require(requires)[0].run_script(script_name, ns)
>>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 1179, in run_script
>>    execfile(script_filename, namespace, namespace)
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/EGG-INFO/scripts/couchapp", line 28, in <module>
>>    couchapp.dispatch.run()
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 29, in run
>>    sys.exit(dispatch(sys.argv[1:]))
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 40, in dispatch
>>    return _dispatch(ui, args)
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 85, in _dispatch
>>    return fun(ui, path, *args, **opts)
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 80, in push
>>    pushdocs(ui, docspath, dest, *args, **opts)
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 171, in pushdocs
>>    db.save_docs(docs1)
>>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/couchdbclient.py", line 443, in save_docs
>>    raise BulkSaveError(errors)
>> couchapp.errors.BulkSaveError
>>
>> I have couchapp installed from git, and I had also uninstalled the
>> couchapp-0.1.7 gem to be on the safe side.  couchapp passes its own
>> testsuite.
>>
>> Having said that, the app does appear to work at first glance, although the
>> "welcome" presentation it invites me to view isn't there.
>>
>> couchdb is current trunk:
>>
>> $ curl http://127.0.0.1:5984/
>> {"couchdb":"Welcome","version":"0.11.0bcc31819f-git"}
>>
>> Regards,
>>
>> Brian.
>>
>
>  I tried to debug this error on irc with latest trunk. It seems that
> this is related to the validation function. First you need to use an
> authenticated usre to send data and second the welcome.json doc lacks
> of a "user" member. I didn't go further yesterday, but imo it should
> solve all the stuff.
>
> - benoit
>

Re: Upgrading an existing Couch's authentication

Posted by Benoit Chesneau <bc...@gmail.com>.
On Tue, Feb 9, 2010 at 1:20 PM, Brian Candler <B....@pobox.com> wrote:
>> >> Once again, props to @jchris for getting the authentication up to
>> >> snuff. I was able to get a simple authentication system built for my
>> >> little couchapp Swinger: http://github.com/quirkey/swinger
>
> I'm keen to try this, but I'm getting the following error:
>
> $ couchapp push . http://localhost:5984/swinger
> [INFO] Visit your CouchApp here:
> http://localhost:5984/swinger/_design/swinger/index.html
> [CRITICAL]
> Traceback (most recent call last):
>  File "/usr/bin/couchapp", line 5, in <module>
>    pkg_resources.run_script('Couchapp==0.5.3', 'couchapp')
>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 452, in run_script
>    self.require(requires)[0].run_script(script_name, ns)
>  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 1179, in run_script
>    execfile(script_filename, namespace, namespace)
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/EGG-INFO/scripts/couchapp", line 28, in <module>
>    couchapp.dispatch.run()
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 29, in run
>    sys.exit(dispatch(sys.argv[1:]))
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 40, in dispatch
>    return _dispatch(ui, args)
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 85, in _dispatch
>    return fun(ui, path, *args, **opts)
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 80, in push
>    pushdocs(ui, docspath, dest, *args, **opts)
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 171, in pushdocs
>    db.save_docs(docs1)
>  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/couchdbclient.py", line 443, in save_docs
>    raise BulkSaveError(errors)
> couchapp.errors.BulkSaveError
>
> I have couchapp installed from git, and I had also uninstalled the
> couchapp-0.1.7 gem to be on the safe side.  couchapp passes its own
> testsuite.
>
> Having said that, the app does appear to work at first glance, although the
> "welcome" presentation it invites me to view isn't there.
>
> couchdb is current trunk:
>
> $ curl http://127.0.0.1:5984/
> {"couchdb":"Welcome","version":"0.11.0bcc31819f-git"}
>
> Regards,
>
> Brian.
>

 I tried to debug this error on irc with latest trunk. It seems that
this is related to the validation function. First you need to use an
authenticated usre to send data and second the welcome.json doc lacks
of a "user" member. I didn't go further yesterday, but imo it should
solve all the stuff.

- benoit

Re: Upgrading an existing Couch's authentication

Posted by Brian Candler <B....@pobox.com>.
> >> Once again, props to @jchris for getting the authentication up to
> >> snuff. I was able to get a simple authentication system built for my
> >> little couchapp Swinger: http://github.com/quirkey/swinger

I'm keen to try this, but I'm getting the following error:

$ couchapp push . http://localhost:5984/swinger
[INFO] Visit your CouchApp here:
http://localhost:5984/swinger/_design/swinger/index.html
[CRITICAL] 
Traceback (most recent call last):
  File "/usr/bin/couchapp", line 5, in <module>
    pkg_resources.run_script('Couchapp==0.5.3', 'couchapp')
  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 452, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.5/site-packages/distribute-0.6.8-py2.5.egg/pkg_resources.py", line 1179, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/EGG-INFO/scripts/couchapp", line 28, in <module>
    couchapp.dispatch.run()
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 29, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 40, in dispatch
    return _dispatch(ui, args)
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/dispatch.py", line 85, in _dispatch
    return fun(ui, path, *args, **opts)    
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 80, in push
    pushdocs(ui, docspath, dest, *args, **opts)
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/commands.py", line 171, in pushdocs
    db.save_docs(docs1)
  File "/usr/lib/python2.5/site-packages/Couchapp-0.5.3-py2.5.egg/couchapp/couchdbclient.py", line 443, in save_docs
    raise BulkSaveError(errors)
couchapp.errors.BulkSaveError

I have couchapp installed from git, and I had also uninstalled the
couchapp-0.1.7 gem to be on the safe side.  couchapp passes its own
testsuite.

Having said that, the app does appear to work at first glance, although the
"welcome" presentation it invites me to view isn't there.

couchdb is current trunk:

$ curl http://127.0.0.1:5984/
{"couchdb":"Welcome","version":"0.11.0bcc31819f-git"}

Regards,

Brian.

Re: Upgrading an existing Couch's authentication

Posted by Robert Dionne <di...@dionne-associates.com>.
Hi Aaron,

  Just to chime in a bit, this swinger app is way cool!  I've been using an older version of it for some time. I did do a github pull yesterday and noticed the new authentication stuff you 
put in. I'm not able to see my older presentations. It's no big deal they can be readily redone, just a data point for you, my database has been around for a while and I always run using trunk.

I very happy you're keeping up with this app, it's great to give a talk about couchdb and couchapps and be able to say "oh by the way this presentation is a couchapp"  It rocks! 

+1 beer

Best,

Bob



On Feb 9, 2010, at 1:20 AM, Chris Anderson wrote:

> On Sun, Feb 7, 2010 at 9:18 PM, Aaron Quint <aa...@quirkey.com> wrote:
>> Hey All
>> 
>> Once again, props to @jchris for getting the authentication up to
>> snuff. I was able to get a simple authentication system built for my
>> little couchapp Swinger: http://github.com/quirkey/swinger
>> Its just so awesome that I can finally have a _fully_ functioning app
>> with user accounts, without a line of server side code. (!!!)
>> 
>> So the question:
>> I have couchdb on a server to host the older version of my app, and I
>> wanted to push the new version with logins/etc. It _was_ running
>> ~0.10, but now I've tried to upgrade it to trunk to get the auth
>> goodies. I'm realizing now that theres some differences between the
>> data, user data format between 0.10 and trunk. I'm wondering if theres
>> an easy way to upgrade the old data, or at least just wipe that piece
>> without having to completely clear and start the data from scratch?
> 
> The user account data should be entirely in the _users db. So unless
> you had one of those laying around you should be good.
> 
> Maybe I'm not fully understanding your question. It looks (on github)
> like you are making progress on your app. Let us know how it goes (or
> if you need more help).
> 
> Cheers,
> Chris
> 
> 
> 
>> 
>> --AQ
>> 
>> Aaron Quint
>> http://www.quirkey.com
>> 
> 
> 
> 
> -- 
> Chris Anderson
> http://jchrisa.net
> http://couch.io


Re: Upgrading an existing Couch's authentication

Posted by Nils Breunese <N....@vpro.nl>.
Paweł Stawicki wrote:

> From what I can see on this mailing list I assume there is something going
> on around users and their rights. Is there any documentation for this new
> solutions? This is something I was missing in CouchDB.

This blog post by jchris has a screencast that explains a bit: 
http://jchrisa.net/drl/_design/sofa/_show/post/CouchDB-Accounts

Nils.

Re: Upgrading an existing Couch's authentication

Posted by Paweł Stawicki <pa...@gmail.com>.
>From what I can see on this mailing list I assume there is something going
on around users and their rights. Is there any documentation for this new
solutions? This is something I was missing in CouchDB.

Best regards
-- 
Paweł Stawicki
http://pawelstawicki.blogspot.com
http://szczecin.jug.pl


On Tue, Feb 9, 2010 at 07:20, Chris Anderson <jc...@apache.org> wrote:

> On Sun, Feb 7, 2010 at 9:18 PM, Aaron Quint <aa...@quirkey.com> wrote:
> > Hey All
> >
> > Once again, props to @jchris for getting the authentication up to
> > snuff. I was able to get a simple authentication system built for my
> > little couchapp Swinger: http://github.com/quirkey/swinger
> > Its just so awesome that I can finally have a _fully_ functioning app
> > with user accounts, without a line of server side code. (!!!)
> >
> > So the question:
> > I have couchdb on a server to host the older version of my app, and I
> > wanted to push the new version with logins/etc. It _was_ running
> > ~0.10, but now I've tried to upgrade it to trunk to get the auth
> > goodies. I'm realizing now that theres some differences between the
> > data, user data format between 0.10 and trunk. I'm wondering if theres
> > an easy way to upgrade the old data, or at least just wipe that piece
> > without having to completely clear and start the data from scratch?
>
> The user account data should be entirely in the _users db. So unless
> you had one of those laying around you should be good.
>
> Maybe I'm not fully understanding your question. It looks (on github)
> like you are making progress on your app. Let us know how it goes (or
> if you need more help).
>
> Cheers,
> Chris
>
>
>
> >
> > --AQ
> >
> > Aaron Quint
> > http://www.quirkey.com
> >
>
>
>
> --
> Chris Anderson
> http://jchrisa.net
> http://couch.io
>

Re: Upgrading an existing Couch's authentication

Posted by Chris Anderson <jc...@apache.org>.
On Sun, Feb 7, 2010 at 9:18 PM, Aaron Quint <aa...@quirkey.com> wrote:
> Hey All
>
> Once again, props to @jchris for getting the authentication up to
> snuff. I was able to get a simple authentication system built for my
> little couchapp Swinger: http://github.com/quirkey/swinger
> Its just so awesome that I can finally have a _fully_ functioning app
> with user accounts, without a line of server side code. (!!!)
>
> So the question:
> I have couchdb on a server to host the older version of my app, and I
> wanted to push the new version with logins/etc. It _was_ running
> ~0.10, but now I've tried to upgrade it to trunk to get the auth
> goodies. I'm realizing now that theres some differences between the
> data, user data format between 0.10 and trunk. I'm wondering if theres
> an easy way to upgrade the old data, or at least just wipe that piece
> without having to completely clear and start the data from scratch?

The user account data should be entirely in the _users db. So unless
you had one of those laying around you should be good.

Maybe I'm not fully understanding your question. It looks (on github)
like you are making progress on your app. Let us know how it goes (or
if you need more help).

Cheers,
Chris



>
> --AQ
>
> Aaron Quint
> http://www.quirkey.com
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io