It’s just data

One line of code

paths=[".htaccess"]
data=["Redirect permanent /0101679/rss.xml http://www.intertwingly.net/blog/index.rss\n"]
r=xss.xmlStorageSystem.saveMultipleFiles(email,pwd,paths,data)
print r['message']

Can't save one or more files because it was not a legal type, or it's too large.

DOH!

Update: added the permanent keyword.  Thanks Mark!


Actually, you want

Redirect permanent /0101679/rss.xml http://www.intertwingly.net/blog/ index.rss

Without the "permanent" keyword, Redirect defaults to a issuing a temporary redirect (HTTP error code 302). If I understand the error codes correctly, aggregators should *not* permanently update their URL in response to a temporary redirect (302). Aggregators should only update their URL when they get a permanent redirect (301).

See http://httpd.apache.org/docs/mod/mod_alias.html#redirect



Posted by Mark

at

Looks like you've discovered RCS's acceptable file extension list ;-)

http://radio.weblogs.com/0001015/images/2002/03/09/rcsFileTypes.gif

Using Python to call xmlStorageSystem.saveMultipleFiles directly avoids this, but you'll also find that Radio doesn't like upstreaming files that start with a '.'. A Mac security issue, I think.


Posted by Phillip Pearson

at

Filenames starting with a dot used to cause your entire website to disappear.

Posted by Sam Ruby at

Woah.

I've seen some weird calls to xmlStorageSystem.deleteMultipleFiles coming from Radio clients when debugging Python Community Server.

Nothing like <b>that</b> though.

Posted by Phillip Pearson at

Sam Ruby

For the moment, lets separate issue 5 from issue 3... The question to be resolved is how aggregators should behave when they encounter a URL which matches the current URL. Unless this case is thought through, I could imaging unleasing a denial of...

Excerpt from phil ringnalda dot com: Redirecting RSS redirection: Comments at

Sam Ruby

For the moment, lets separate issue 5 from issue 3... The question to be resolved is how aggregators should behave when they encounter a URL which matches the current URL. Unless this case is thought through, I could imaging unleasing a denial of...

Excerpt from phil ringnalda dot com: Redirecting RSS redirection: Comments at

Add your comment