MathAction #121 bogus <code>property change</code> comments

Submitted by : (unknown) at: 2007年11月17日T21:54:35-08:00 (18 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :
Optional comment :

Some very aggressive search engines (spiders) seem to be following form action="xxxx" references in pages as well as the usual href links. As a result probes by such greedy theives can cause unexpected changes to wiki web pages. One such example recently has been the triggering of the Change button on the Issue pages. The script changeIssueProperties should be more careful not to record any change if the Change action is triggered with no actually changes.

patch for ZWiki/plugins/Tracker.py --Bill Page, 2005年3月10日 23:09:25 -0600 reply
diff -au test/Products/ZWiki/plugins/Tracker.py main/Products/ZWiki/plugins/Tracker.py
--- test/Products/ZWiki/plugins/Tracker.py 2004年11月17日 14:57:59.000000000 -0600
+++ main/Products/ZWiki/plugins/Tracker.py 2005年03月10日 22:55:09.000000000 -0600
@@ -296,10 +296,11 @@
 if status != self.status:
 comment += "Status: %s => %s \n" % (self.status,status)
 self.manage_changeProperties(status=status)
- log = log or property change
- self.comment(text=comment, subject_heading=log, REQUEST=REQUEST)
- self.setLastEditor(REQUEST)
- self.reindex_object()
+ if log or (comment != ''):
+ log = log or property change
+ self.comment(text=comment, subject_heading=log, REQUEST=REQUEST)
+ self.setLastEditor(REQUEST)
+ self.reindex_object()
 if REQUEST: REQUEST.RESPONSE.redirect(self.page_url())

def category_index(self):

property change --Bill Page, 2005年3月10日 23:10:04 -0600 reply
Status: open => testing

property change --Bill Page, 2005年10月01日 15:25:02 -0500 reply
Name: '#121 bogus property change comments' => '#121 bogus property change comments' Status: testing => closed




Subject: Be Bold !!
( 15 subscribers )
Please rate this page:

AltStyle によって変換されたページ (->オリジナル) /