incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Gabriel <a...@barbalex.ch>
Subject Re: "Only admin can delete documents on this database" - but no validation function
Date Fri, 09 Sep 2011 18:28:30 GMT
Hi Max

Yes, that was the reason.
I deleted that in _design/recline and deleting works again.

Hope that was the solution.

Thanks for helping!

Alex




2011/9/9 Max Ogden <max@maxogden.com>

> I'm guessing you installed Recline into that database recently
>
> https://github.com/maxogden/recline/blob/master/app.js#L120
>
> validate_doc_updates are database-wide :)
>
> On Thu, Sep 8, 2011 at 8:34 AM, Alexander Gabriel
> <alex.barbalex@gmail.com>wrote:
>
> > Yes, that has been the same for the past months
> >
> > vom Handy gesendet
> > Am 08.09.2011 17:23 schrieb "Neil Gibbons" <gibbons.n@gmail.com>:
> > > Have you created a server admin?
> > >
> > > Neil
> > >
> > >
> > >
> > > On 8 September 2011 15:31, Alexander Gabriel <alex@barbalex.ch> wrote:
> > >
> > >> Hi
> > >>
> > >> Until very recently I could delete documents from my database using
> > this:
> > >>
> > >>
> >
> >
> http://127.0.0.1:5984/evab-ch_barbalex_evab/39c7a5e62c7207b8d08d69c88c000a6a?rev=1-0395dafa18bdde7afbbee439af1d1f7a
> > >>
> > >> produced from this code:
> > >> function handleDelete(event)
> > >> {
> > >> // First open doc based on ID in order to get full document
> > >> $db.openDoc(docId, {
> > >> success: function(document) {
> > >> // Then use the opened doc as reference to remove
> > >> $db.removeDoc(document, {
> > >> success: function() {
> > >> window.open("../../BeobListe.html", target = '_self');
> > >> },
> > >> error: function() {
> > >> MeldungEinzeilig("Die Beobachtung mit der ID: " + docId + " konnte
> nicht
> > >> gelöscht werden");
> > >> }
> > >> });
> > >> },
> > >> error: function() {
> > >> MeldungEinzeilig("Eine Beobachtung mit der ID: " + docId + " wurde
> nicht
> > >> gefunden");
> > >> }
> > >> });
> > >> }
> > >>
> > >> Today I get this error: {"error":"case_clause","reason":"Only admin
> can
> > >> delete documents on this database."}
> > >>
> > >> I am a little stumped since I don't (jet) have a validation function
> in
> > my
> > >> database.
> > >> In futon > security there are no admins and users or roles defined.
> > >>
> > >> What could be the reason for this error?
> > >>
> > >> Thanks for help.
> > >>
> > >> Alex
> > >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message