Author: metskem
Date: Sun Dec  6 18:55:07 2009
New Revision: 887747

URL: http://svn.apache.org/viewvc?rev=887747&view=rev
Log:
2.8.4-svn-4 JSPWIKI-617: Attachments unsearchable after renaming a page

Modified:
    incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog
    
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/Release.java
    
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/content/PageRenamer.java

Modified: incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog
URL: 
http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog?rev=887747&r1=887746&r2=887747&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/ChangeLog Sun Dec  6 18:55:07 
2009
@@ -1,3 +1,9 @@
+2009-12-06 Harry Metske <[email protected]>
+
+        * 2.8.4-svn-4
+        
+         * JSPWIKI-617: Attachments unsearchable after renaming a page 
+
 2009-11-24  Janne Jalkanen <[email protected]>
 
         * 2.8.4-svn-3

Modified: 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/Release.java
URL: 
http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/Release.java?rev=887747&r1=887746&r2=887747&view=diff
==============================================================================
--- 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/Release.java
 (original)
+++ 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/Release.java
 Sun Dec  6 18:55:07 2009
@@ -77,7 +77,7 @@
      *  <p>
      *  If the build identifier is empty, it is not added.
      */
-    public static final String     BUILD         = "3";
+    public static final String     BUILD         = "4";
     
     /**
      *  This is the generic version string you should use

Modified: 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/content/PageRenamer.java
URL: 
http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/content/PageRenamer.java?rev=887747&r1=887746&r2=887747&view=diff
==============================================================================
--- 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/content/PageRenamer.java
 (original)
+++ 
incubator/jspwiki/branches/JSPWIKI_2_8_BRANCH/src/com/ecyrd/jspwiki/content/PageRenamer.java
 Sun Dec  6 18:55:07 2009
@@ -160,6 +160,12 @@
         //  re-index the page 
         //
         engine.getSearchManager().reindexPage(toPage);
+        
+        Collection<Attachment> attachments = 
engine.getAttachmentManager().listAttachments( toPage );
+        for (Attachment att:attachments)
+        {
+            engine.getSearchManager().reindexPage(att);
+        }
 
 
         //


Reply via email to