[Pkg-zope-developers] zope and bugs 251038 and 267528

Derrick 'dman' Hudson dman@dman13.dyndns.org
Tue, 24 Aug 2004 22:29:14 -0400


--huq684BweRXVnRxX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I noticed the recent activity trying to solve some bugs in the zope
package.  I am not a Debian Developer, but I am a zope user.


-----

Thaddeus, Pierre,

You may not be aware, but there is a pkg-zope project on alioth.
Luca, the current maintainer, hasn't been able to put
enough time into the packages in a while.  However, some people have
provided some contributions through the mailing list
(pkg-zope-developers@lists.alioth.debian.org).  You may want to
subscribe to the list (its very low-volume) and ask if anyone there
can lend a hand.  (I CC'd this message to the list)


-----

The zpasswd patch for bug 251038 looks fine as I see it applied in
versions 2.6.4-1.3 and 2.6.4-1.4.  (the original would have ignored a
--password on the command line;  I'll note that in the zope.org
collector)


-----

As for the access file, I have no idea what the code in the postinst
is trying to do:
        {
            ACCESS_DEFAULT=3Ddefault
            if [ ! -e $access ] ; then
                mkdir -p $access
                if [ ! -e $access/$ACCESS_DEFAULT ] ; then
                        touch $access/$ACCESS_DEFAULT
                        echo "Please enter a password for Zope's initial/em=
ergency user."
                        zopectl --access "$ACCESS_DEFAULT"
                fi
            fi
        }

It makes no sense to me because /var/lib/zope/instance/default/access
is supposed to be a file akin to apache's htpasswd files.  For
example,

$ cat /var/lib/zope/instance/default/access
root:asdf

Zope reads this file when it starts up.  This use is called the
"emergency user" because it can not create any content in the
database.  Its primary purpose is to bootstrap the system so the site
administrator can create real users in the database.

Other than having no idea why the postinst would try to create the
access file as a directory, I think Frank's suggestion at the end of
bug #267528 looks correct.

    if [ ! -e $access ] ; then
        mkdir -p $access
    fi
    if [ ! -e $access/$ACCESS_DEFAULT ] ; then
        touch $access/$ACCESS_DEFAULT
        echo "Please enter a password for Zope's initial/emergency user."
        zopectl --access "$ACCESS_DEFAULT"
    fi


HTH,
-D

--=20
What can I do with Python that I can't do with C#?
You can go home on time at the end of the day.
        -- Daniel Klein
=20
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.=
org

--huq684BweRXVnRxX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBK/l5iB6vp1xAVUARAvrKAJwPiI4FOAF4aSsiBuaneX8LpkekNQCfSeXZ
ufWdbxgfqHMw5dvlaQ0urdU=
=/390
-----END PGP SIGNATURE-----

--huq684BweRXVnRxX--