samizdat-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

debian 0.5.5.20060924 bugs/suggestions (fwd)


From: boud
Subject: debian 0.5.5.20060924 bugs/suggestions (fwd)
Date: Tue, 3 Oct 2006 20:32:43 +0200 (CEST)

hi samizdat-devel,

Here's another of my messages that i sent to the wrong address :P. i think
it's the last one...

---------- Forwarded message ----------
Date: Tue, 26 Sep 2006 05:28:27 +0200 (CEST)
From: boud <boud...
To: samizdat-devel at lists.nongnu.org
Subject: debian 0.5.5.20060924 bugs/suggestions

hi samizdat-devel,

(2) below is the most serious bug - not being able to read resources!
(0) is important (but easy)
(1) IMHO is useful not to annoy the person installing by giving false info
(3) would be user-friendly to the person installing

cheers
boud


----------------------------------------------------------------------

(0) GetText solution 0.5.5.20060924 was good style, but didn't solve the bug ;)

The   GetText::   part of the pre 1.6.0 version fails. i could only
get the new version to work with the following patch - i.e. remove GetText:: from the pre 1.6.0 option in the method definition in engine.rb.

So here's the one-line patch:


--- /usr/lib/ruby/1.8/samizdat/engine.rb_0.5.5.20060924 2006-09-24 15:59:12.000000000 +0200 +++ /usr/lib/ruby/1.8/samizdat/engine.rb 2006-09-26 04:28:45.674963312 +0200
@@ -68,7 +68,8 @@
   if major.to_i < 1 or (1 == major.to_i and minor.to_i < 6) then
     # GetText < 1.6.0
     def samizdat_bindtextdomain(locale, path=nil)
-      GetText::bindtextdomain('samizdat', path, locale, 'utf-8')
+#      GetText::bindtextdomain('samizdat', path, locale, 'utf-8')
+      bindtextdomain('samizdat', path, locale, 'utf-8')
     end
   else
     def samizdat_bindtextdomain(locale, path=nil)



(1) sites.yaml:

i think this line is wrong now and should be removed:

# URI prefix should begin and end with a slash.

and a line something like the following should be added:

# more information should go in the site-specific configuration
# file(s)   sites/<site-name>.yaml



(2) examples/apache.conf:

prompt$ apache -v
Server version: Apache/1.3.33 (Debian GNU/Linux)
Server built:   Aug 27 2006 16:34:48


i fail to be able to read any URL's of the form:

http://localhost/2

etc. with the present examples/apache.conf (this might have been
present earlier, i didn't fully update my apache conf recently) unless i bring

    RewriteEngine on
    RewriteRule ^/([0-9]+)$ /resource.rb?id=$1 [PT]

outside of the /var/www/samizdat <directory> box.

My guess is that the rewrite is only valid inside the box and by the time
the apache process gets back out to

    AliasMatch ^/(foci|history|index...

it has forgotten about the Rewrite.

By bringing it back out, both the Rewrite and the AliasMatch are
applied and so there's no problem.



(3) examples/apache.conf:


IMHO it would be reasonable to suggest to the person installing
a directive so that s/he can easily install things like images, include files in the /var/www/samizdat directory and have them
correctly picked up by apache.

i.e. add a few lines just before the close of the virtual host
box </VirtualHost>:

# Uncomment the following line if you want to add additional
# files such as a favicon.ico or include files to your samizdat
# setup:
#
#    AliasMatch ^/(.*) /var/www/samizdat/$1


----------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]