samizdat-devel
[Top][All Lists]
Advanced

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

(en) (id) tidak ada usefulinc.com/rss/manifest


From: boud
Subject: (en) (id) tidak ada usefulinc.com/rss/manifest
Date: Tue, 6 Feb 2007 23:46:20 +0100 (CET)

selamat siang,

(en) english below

(id)
Ada soal di "feed RDF/RSS" indymedia jakarta, di file

http://jakarta.indymedia.org/newsfeed.php?type=feature&language=id

yang dibaca oleh komputer (serwer) yang lain, misalnya di belah kanan
di http://www.indymedia.org

Soal: ada tulisan

 xmlns:mn="httep://usefulinc.com/rss/manifest/"

di file  http://jakarta.indymedia.org/newsfeed.php?type=feature&language=id

tapi tidak ada

http://usefulinc.com/rss/manifest/

di web.

Kemudian, mungkin program yang lain dapat punya soal menulis file itu.


Untuk program samizdat (indymedia belarus dan ukraine dan torun pakai
samizdat), ini pemperbaiki (hack) saya:

+        # Remove tag section not needed and known to be buggy for
+        # invalid "mn" type URI  http://usefulinc.com/rss/manifest/
+       if response =~ %r{http://usefulinc.com/rss/manifest/}
+           
response.sub!(/<rdf:Description(.*\n)*?.*mn:channels.*(.*\n)*?.*<\/rdf:Description>/,"")
+        end


sampai berjumpa lagi
boud



(en)

http://bugs.sfimc.net doesn't work right now - so i couldn't report
this bug there.


(1) Some feeds such as:

http://argentina.indymedia.org/syn/features_long.rdf    (sf-active, i think)
http://jakarta.indymedia.org/newsfeed.php?type=feature&language=id

refer in the rdf header to an xml namespace defined in a URL which responds to requests

xmlns:mn="http://usefulinc.com/rss/manifest/";

with

File not found

Change this error message for pages not found in public/404.html

This can result in the <rdf:Description> box at the bottom of the file
crashing a parse error, presumably (i'm guessing) because it contains a
<mn:channels> sub-box and mn:channels was only defined in the non-existent usefulinc
manifest file. In any
case, removing the whole  <rdf:Description> box  avoids the error.

A hardwired hack i wrote (in ruby) to avoiding crashing on sf-active
type indymedia sites which refer to this undefined "manifest" xml definition
is as follows:

+        # Remove tag section not needed and known to be buggy for
+        # invalid "mn" type URI  http://usefulinc.com/rss/manifest/
+       if response =~ %r{http://usefulinc.com/rss/manifest/}
+           
response.sub!(/<rdf:Description(.*\n)*?.*mn:channels.*(.*\n)*?.*<\/rdf:Description>/,"")
+        end


It works for at least the above two sites - argentina is running
sf-active (i think) and jakarta probably an old version of ocailt(?):

http://argentina.indymedia.org/syn/features_long.rdf
http://jakarta.indymedia.org/newsfeed.php?type=feature&language=id


solidarity
boud




reply via email to

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