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.c
om/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.c
om/rss/manifest/
+ if response =~ %r{http://usefulinc.c
om/rss/manifest/}
+ response.sub!(/<rdf escripti
on(.*n)*?.*mn:channels.*(.*n)*?.*</rdf escripti
on>/,"")
+ 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://usefu
linc.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 escripti
on> 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 escripti
on> 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.c
om/rss/manifest/
+ if response =~ %r{http://usefulinc.c
om/rss/manifest/}
+ response.sub!(/<rdf escripti
on(.*n)*?.*mn:channels.*(.*n)*?.*</rdf escripti
on>/,"")
+ 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
_______________________________________________
samizdat-devel mailing list
samizdat-devel nongnu.org
http://lists.nongnu.org/mailman/listinfo/samizdat-devel
a>
|