[Pharo-project] Monticello and webdav
At work, I'm trying to create a personal repository for Monticello. For this, I installed a Linux server with Apache and I want use webdav. My webdav configuration is : DAVMinTimeout 600 DAVDepthInfinity On <Directory /var/www/pharo> Options Indexes MultiViews DAV on AuthName "Depot Pharo" AuthType Basic AuthUserFile /etc/apache2/htpasswd-webdav <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require valid-user </Limit> </Directory> My webdav repository works fine. I can put and get files from my computer. In Monticello, I added my repository like this: MCHttpRepository location: 'http://drwho.priv.lifl.fr/pharo/' user: 'login' password: 'password' I can open the repository and I can save a package. With Pharo 1.3, all works fine but with Pharo 1.4, I can open the repository, I see the packages but when I click on a package, Monticello returns the following error: MessageNotUnderstood: receiver of "readStream" is nil. someone have an idea ? Thanks for your help Best regards Olivier :-)
Olivier, Make sure you serve the mcz files binary (application/octet-stream or appliction/x-monticello). Test from Pharo Smalltalk like this: ZnEasy get: 'http://www.squeaksource.com/ZincHTTPComponents/Zinc-HTTP-SvenVanCaekenberghe...' => a ZnResponse(200 OK application/x-monticello 183155B) You can use the #get:username:password: variant if necessary. HTH, Sven -- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill On 07 Jun 2012, at 16:00, Olivier Auverlot wrote:
At work, I'm trying to create a personal repository for Monticello. For this, I installed a Linux server with Apache and I want use webdav.
My webdav configuration is :
DAVMinTimeout 600 DAVDepthInfinity On
<Directory /var/www/pharo> Options Indexes MultiViews DAV on AuthName "Depot Pharo" AuthType Basic AuthUserFile /etc/apache2/htpasswd-webdav <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require valid-user </Limit> </Directory>
My webdav repository works fine. I can put and get files from my computer.
In Monticello, I added my repository like this: MCHttpRepository location: 'http://drwho.priv.lifl.fr/pharo/' user: 'login' password: 'password'
I can open the repository and I can save a package. With Pharo 1.3, all works fine but with Pharo 1.4, I can open the repository, I see the packages but when I click on a package, Monticello returns the following error: MessageNotUnderstood: receiver of "readStream" is nil.
someone have an idea ? Thanks for your help
Best regards Olivier :-)
Hi Sven, Thank for your help. I just added "AddType application/x-monticello mcz" in my Apache configuration file and it works ! The day begins very well ;-) Best regards Olivier Le 7 juin 2012 à 16:22, Sven Van Caekenberghe a écrit :
Olivier,
Make sure you serve the mcz files binary (application/octet-stream or appliction/x-monticello).
Test from Pharo Smalltalk like this:
ZnEasy get: 'http://www.squeaksource.com/ZincHTTPComponents/Zinc-HTTP-SvenVanCaekenberghe...' => a ZnResponse(200 OK application/x-monticello 183155B)
You can use the #get:username:password: variant if necessary.
HTH,
Sven
-- Sven Van Caekenberghe http://stfx.eu Smalltalk is the Red Pill
On 07 Jun 2012, at 16:00, Olivier Auverlot wrote:
At work, I'm trying to create a personal repository for Monticello. For this, I installed a Linux server with Apache and I want use webdav.
My webdav configuration is :
DAVMinTimeout 600 DAVDepthInfinity On
<Directory /var/www/pharo> Options Indexes MultiViews DAV on AuthName "Depot Pharo" AuthType Basic AuthUserFile /etc/apache2/htpasswd-webdav <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Require valid-user </Limit> </Directory>
My webdav repository works fine. I can put and get files from my computer.
In Monticello, I added my repository like this: MCHttpRepository location: 'http://drwho.priv.lifl.fr/pharo/' user: 'login' password: 'password'
I can open the repository and I can save a package. With Pharo 1.3, all works fine but with Pharo 1.4, I can open the repository, I see the packages but when I click on a package, Monticello returns the following error: MessageNotUnderstood: receiver of "readStream" is nil.
someone have an idea ? Thanks for your help
Best regards Olivier :-)
participants (2)
-
Olivier Auverlot -
Sven Van Caekenberghe