login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Submitted by : (unknown) at: 2007-11-17T21:54:35-08:00 (9 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, Thu, 10 Mar 2005 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, Thu, 10 Mar 2005 23:10:04 -0600 reply
Status: open => testing

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




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