You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by aj...@apache.org on 2008/11/26 03:45:42 UTC

svn commit: r720714 - in /incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH: ./ etc/i18n/ etc/i18n/plugin/ etc/i18n/templates/ src/com/ecyrd/jspwiki/ src/com/ecyrd/jspwiki/plugin/ src/com/ecyrd/jspwiki/ui/ src/com/ecyrd/jspwiki/url/ src/org/apache/...

Author: ajaquith
Date: Tue Nov 25 18:45:41 2008
New Revision: 720714

URL: http://svn.apache.org/viewvc?rev=720714&view=rev
Log:
Merged STRIPES_BRANCH with trunk revision 719669.

Added:
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/ActionContext.java
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/org/apache/jspwiki/api/ActionContext.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/skins/PlainVanilla 800x600/
      - copied from r720710, incubator/jspwiki/trunk/src/webdocs/templates/default/skins/PlainVanilla 800x600/
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/skins/PlainVanilla 800x600/skin.css
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/webdocs/templates/default/skins/PlainVanilla 800x600/skin.css
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/skins/PlainVanilla 800x600/skin.js
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/webdocs/templates/default/skins/PlainVanilla 800x600/skin.js
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/
      - copied from r720710, incubator/jspwiki/trunk/src/wikipages/it/
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/About.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/About.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/ApprovalRequiredForPageChanges.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/ApprovalRequiredForPageChanges.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/ApprovalRequiredForUserProfiles.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/ApprovalRequiredForUserProfiles.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/Community.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/Community.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/CopyrightNotice.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/CopyrightNotice.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/EditFindAndReplaceHelp.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/EditFindAndReplaceHelp.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/EditPageHelp.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/EditPageHelp.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/FullRecentChanges.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/FullRecentChanges.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/InstallationTips.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/InstallationTips.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/LeftMenu.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/LeftMenu.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/LeftMenuFooter.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/LeftMenuFooter.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/LoginHelp.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/LoginHelp.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/Main.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/Main.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/MoreMenu.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/MoreMenu.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/OneMinuteWiki.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/OneMinuteWiki.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/PageAlias.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/PageAlias.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/PageIndex.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/PageIndex.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/RecentChanges.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/RecentChanges.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/RejectedMessage.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/RejectedMessage.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/SandBox.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/SandBox.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/SearchPageHelp.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/SearchPageHelp.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/SystemInfo.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/SystemInfo.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/TextFormattingRules.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/TextFormattingRules.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/TitleBox.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/TitleBox.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/UndefinedPages.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/UndefinedPages.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/UnusedPages.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/UnusedPages.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/WikiEtiquette.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/WikiEtiquette.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/WikiName.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/WikiName.txt
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/wikipages/it/WikiWiki.txt
      - copied unchanged from r720710, incubator/jspwiki/trunk/src/wikipages/it/WikiWiki.txt
Removed:
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/AbstractContext.java
Modified:
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/ChangeLog
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/build.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_it.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_zh_CN.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_de.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_it.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_zh_CN.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/templates/default_it.properties
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/Release.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/WikiEngine.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/ui/Installer.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/url/DefaultURLConstructor.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiContext.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiRenderer.java
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-common.js
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-edit.js
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/Favorites.jsp
    incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/jspwiki.css

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/ChangeLog
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/ChangeLog?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/ChangeLog (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/ChangeLog Tue Nov 25 18:45:41 2008
@@ -1,3 +1,59 @@
+2008-11-21 Harry Metske <me...@apache.org>
+
+        * 3.0.0-svn-12
+        
+        * JSPWIKI-440: Plesk installation of war files.
+        JSPWiki (in most cases) fails to install from an unmodified download because
+        the pageDir points to a directory that cannot be created, changed a couple of default
+        values in build.properties.
+        
+        * JSPWIKI-424 The famous trailing slash in baseURL
+        Now also fixed in Installer and DefaultURLConstructor.
+        
+2008-11-21 Harry Metske <me...@apache.org>
+
+        * 3.0.0-svn-11
+        
+        * JSPWIKI-407: applied zh_CN patch from Hubert Chang
+        
+2008-11-20  Dirk Frederickx <di...@gmail.com>
+
+        * 3.0.0-svn-10  -- merged from 2.8.1-svn-12
+        
+        * [JSPWIKI-381] fixed a bug with periodicially refreshed sneak-preview
+        while in section-edit mode. When section-edit was active,
+        linefeeds were inserted at every sneak-prev refresh.
+        
+        * [JSPWIKI-384] Filter js-scripts from input fields and cookies.
+        (xss vulnerability)
+        
+        * Added 800x600 plain-vanilla skin
+        
+2008-11-18 Harry Metske <me...@apache.org>
+
+        * 3.0.0-svn-9
+        
+        * JSPWIKI-439: German localization by Florian Holeczek
+ 
+2008-11-06  Janne Jalkanen <ja...@apache.org>
+
+        * 3.0.0-svn-8
+        
+        * [JSPWIKI-428]: WeblogPlugin was not properly finding the page title
+        due to misshapen regexp.
+        
+2008-11-13 Harry Metske <me...@apache.org>
+
+        * 3.0.0-svn-7
+        
+        * JSPWIKI-407: added Italian corepages and update to it resources, thanks to Luca
+ 
+2008-11-10 Harry Metske <me...@apache.org>
+
+        * 3.0.0-svn-6
+        
+        * JSPWIKI-424: Enforce (autofix) baseURL property to end with trailing slash, reported by John Volkar
+
 2008-11-10  Janne Jalkanen <ja...@apache.org>
 
         * 3.0.0-svn-5

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/build.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/build.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/build.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/build.properties Tue Nov 25 18:45:41 2008
@@ -53,10 +53,10 @@
 #
 
 #  Which browser to use?
-webtests.browser=*safari
+webtests.browser=*firefox
 #  if you run firefox, and it is not in your PATH, you can specify this :
 #webtests.browser=*firefox /usr/lib/firefox/firefox-2-bin
 
 # For generating API diffs (you must have DependencyFinder installed)
-dependencyfinder.dir=../lib/DependencyFinder
-jarfile.old=../JSPWiki-2.6.3-src/build/JSPWiki.jar
+#dependencyfinder.dir=../lib/DependencyFinder
+#jarfile.old=../JSPWiki-2.6.3-src/build/JSPWiki.jar

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_it.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_it.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_it.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_it.properties Tue Nov 25 18:45:41 2008
@@ -26,11 +26,11 @@
 common.unknownauthor = AutoreSconosciuto
 
 # Decisions: {0}=task owner; {1}=requester; {2-9}=additional message arguments for workflow
-decision.editWikiApproval=Edita la pagina {2}
+decision.editWikiApproval=Modifica la pagina {2}
 
 # Security
 
-security.error.noaccess.logged=Non hai accesso a &#39;{0}&#39;. Vuoi aytenticarti con un altra utenza?.
+security.error.noaccess.logged=Non hai accesso a &#39;{0}&#39;. Vuoi autenticarti con un altra utenza?.
 security.error.noaccess=Non hai accesso a &#39;{0}&#39;. Per favore, autenticati.
 security.error.wrongip=Tentativo di inviare dati da un indirizzo IP diverso da quello da cui la pagina &egrave; stata inizialmente caricata.
 
@@ -49,7 +49,7 @@
 # Renaming
 
 rename.empty=Il nome della nuova pagina &egrave; vuoto. Seleziona "back" sul browser e inserisci un nome.
-rename.error.title=Impossibile ridenominare la pagina
+rename.error.title=Impossibile rinominare la pagina
 rename.error.reason=Causa:
 rename.identical=Nomi delle pagine identici.  Seleziona "back" sul browser e cambia il nome.
 rename.exists=La pagina "{0}" esiste gi&agrave;. Seleziona "back" sul browser e cambia il nuovo nome o cancella prima la pagina "{0}".
@@ -71,11 +71,11 @@
 lostpwd.nomail=Errore Interno: impossibile inviare la mail!  Vi preghiamo di contattare l'amministratore del sito.
 lostpwd.emailed=Una nuova password &egrave; stata inviata via email all'account registrato.
 
-lostpwd.reset.title=Password reset
+lostpwd.reset.title=Reset della Password
 lostpwd.reset.unable=Impossibile resettare la password. Tentate di nuovo.
 
 lostpwd.reset.blurb=Password persa o dimenticata?  Inserite qui il vostro identificativo o la vostra email:
-lostpwd.reset.submit=Reset password!
+lostpwd.reset.submit=Cambia la password!
 
 # TraditionalDiffProvider
 
@@ -120,7 +120,7 @@
 # Install.jsp
 install.jsp.title=JSPWiki Installer
 install.jsp.intro.title=JSPWiki Installer
-install.jsp.intro.p1=Benvenuti!  Questa semplice pagina JSP serve ad aiutare a completare il primo passo dell'istallazione\
+install.jsp.intro.p1=Benvenuti!  Questa semplice pagina JSP serve ad aiutare a completare il primo passo dell'istallazione
                      .  Se potete vedere questa pagina, avete istallato correttamente JSPWiki nel container web.
 install.jsp.intro.p2=Ora ci sono alcune cose che occorre configurare. Quando premerete il bottone invia, il file \
                      <code>jspwiki.properties</code> contenuto nella distribuzione standard ver&agrave; modificato, o, se non potesse\
@@ -138,7 +138,7 @@
                                 sicuro. JSPWiki ha anche creato un gruppo wiki chiamato {2} che contiene questo utente.
 install.jsp.install.msg.admin.notexists=E' la prima volta che avete eseguito questo installer? Se si, dovete sapere che\
                                         dopo che JSPWiki ha validato e salvato la vostra configurazione la prima volta, avrete\
-                                        bisogno dei privilegi di amminstratore per accedere ancora a questa pagina. Lo facciamo per evitare\
+                                        bisogno dei privilegi di amministratore per accedere ancora a questa pagina. Lo facciamo per evitare \
                                         che persone non autorizzate possano compiere atti non voluti sul vostro wiki.   
 
 install.jsp.basics.title=Elementi base
@@ -146,9 +146,9 @@
 install.jsp.basics.appname.desc=Come deve chiamarsi il vostro wiki? Vi conviene dare un nome relativamente corto.
 install.jsp.basics.baseurl.label=Base URL
 install.jsp.basics.baseurl.desc=Per favore, segnalate a JSPWiki dove &egrave; istallato il vostro wiki.
-install.jsp.basics.page.storage.label=Page storage
+install.jsp.basics.page.storage.label=Memorizzazione delle pagine
 install.jsp.basics.page.storage.desc=Per default, JSPWiki user&agrave; un VersioningFileProvider che mantiene i file in una specifica \
-                                     directory sul vostro disco. Se speicificate una directory che non esiste, JSPWiki la\
+                                     directory sul vostro disco. Se specificate una directory che non esiste, JSPWiki la\
                                      creer&agrave; automaticamente. Tutti gli allegati verranno messi nella stessa directory.
 
 install.jsp.security.title=Sicurezza
@@ -158,24 +158,24 @@
 install.jsp.security.sec.conf.desc=Per default, JSPWiki gestisce gli accessi alle risorse usando un sistema di sicurezza basato su JAAS. \
                                    Verranno rispettati anche eventuali vincoli di sicurezza impostati sul Container, \
                                    se sono stati abilitati nel file <code>web.xml</code>. Se disabilitate la sicurezza JAAS, \
-                                   JSPWiki potrebbe non funzionare come ci si aspetta. Ma in qualche caso questo potrebbe essere voluto, soprattutto se\
+                                   JSPWiki potrebbe non funzionare come ci si aspetta. Ma in qualche caso questo potrebbe essere voluto, soprattutto se \
                                    state tentando di diagnosticare eventuali problemi.
-install.jsp.security.admaccount.label=Account di Administratore 
+install.jsp.security.admaccount.label=Account di Amministratore 
 install.jsp.security.admaccount.enabled=Abilitato
 install.jsp.security.admaccount.notenabled=Non abilitato
-install.jsp.security.admaccount.enabled.desc=Questo wiki ha un account di amministratore con identificativo <strong>admin</strong> che f&agrave; parte\
+install.jsp.security.admaccount.enabled.desc=Questo wiki ha un account di amministratore con identificativo <strong>admin</strong> che f&agrave; parte \
                                              del gruppo wiki <strong>Admin</strong>. Per default, JSPWiki assegna a tutti i membri \
                                              del gruppo Admin group il permesso <code>AllPermission</code> che permette di fare qualsiasi cosa.
 install.jsp.security.admaccount.notenabled.desc=Questo wiki non sembra avere un account di administratore. Se selezionate<em>Configura!</em>,\
                                                 JSPWiki ne creer&agrave; uno.
 
-install.jsp.adv.settings.title=Advanced Settings
-install.jsp.adv.settings.logfile.label=Log files
+install.jsp.adv.settings.title=Opzioni avanzate
+install.jsp.adv.settings.logfile.label=File di Log
 install.jsp.adv.settings.logfile.desc=JSPWiki usa Jakarta Log4j per il logging.  Per favore, definite dove devono essere salvati i file di log.
 install.jsp.adv.settings.workdir.label=Directory di lavoro
 install.jsp.adv.settings.workdir.desc=Questo &egrave; il posto dove vengono mantenute le caches e altro materiale runtime.
 install.jsp.instr.desc=Dopo che avrete selezionato <em>Configura!</em>, l' installer scriver&agrave; i setting ottenuti in: <code>{0}</code>. \
-                       Verr&agrave; anche creato un aaccount di Administratore con una password casuale e un corrispondente gruppo Admin. 
+                       Verr&agrave; anche creato un account di Amministratore con una password casuale e un corrispondente gruppo Admin. 
 install.jsp.instr.submit=Configura!
 install.jsp.validated.new.props=Ecco il vostro nuovo file  jspwiki.properties
 
@@ -184,7 +184,7 @@
 install.installer.default.appname=MyWiki
 install.installer.default.pagedir=Per favore, configurami !
 install.installer.props.saved=Le vostre nuove propriet&agrave sono state salvate.  Per favore, fate ripartire il Container (a meno che questa non fosse la vostra prima\
-                              istalalzione).  Scrollate per vedere il vostro nuovo jspwiki.properties.
+                              istallazione).  Scrollate per vedere il vostro nuovo jspwiki.properties.
 install.installer.props.notsaved=Impossibile scrivere le propriet&agrave;: {0}. Per favore copiate il file sottostante come il vostro nuovo jspwiki.properties:\n{1}
 install.installer.validate.baseurl=Occorre definire il base URL per questo wiki.
 install.installer.validate.pagedir=Occorre definire il posto dove salvare i file.
@@ -193,4 +193,15 @@
 install.installer.validate.logdir=Occorre definire la log directory.
 
 # RSSImageLinkTag
-rss.title=RSS per la pagina {0}
\ No newline at end of file
+rss.title=RSS per la pagina {0}
+
+# AttachmentManager
+attach.unwanted.file=File con estensione non permessa.
+attach.empty.file=Nome del file vuoto.
+attach.parent.not.exist=La pagina padre non esiste
+
+# VariableManager
+varmgr.not.logged.in=non collegato
+varmgr.authenticated=autenticato
+varmgr.asserted=asserito
+varmgr.anonymous=anonimo

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_zh_CN.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_zh_CN.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_zh_CN.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/CoreResources_zh_CN.properties Tue Nov 25 18:45:41 2008
@@ -196,3 +196,14 @@
 
 # RSSImageLinkTag
 rss.title=\u9875\u9762 {0} \u7684 RSS \u8ba2\u9605\u6e90
+
+# AttachmentManager
+attach.unwanted.file=\u4e0d\u9700\u8981\u7684\u6587\u4ef6\u540d\u79f0\u3002
+attach.empty.file=\u6587\u4ef6\u540d\u4e3a\u7a7a\u3002
+attach.parent.not.exist=\u7236\u9875\u9762\u4e0d\u5b58\u5728
+
+# VariableManager
+varmgr.not.logged.in=\u672a\u767b\u5f55
+varmgr.authenticated=\u5df2\u9a8c\u8bc1
+varmgr.asserted=\u5c1a\u5f85\u9a8c\u8bc1
+varmgr.anonymous=\u533f\u540d
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_de.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_de.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_de.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_de.properties Tue Nov 25 18:45:41 2008
@@ -48,9 +48,7 @@
 
 # ReferringPagesPlugin
 
-# This is in JSPWikiMarkup; {0} is where you put in the number, and {1} is a link
-# to the page info with the full list
-
+# {0} is where you put in the number how many links are still there
 referringpagesplugin.more= ... und {0} weitere
 referringpagesplugin.nobody= ... keine
 
@@ -72,4 +70,13 @@
 plugin.listlocks.locked.by=gesperrt für
 plugin.listlocks.acquired=gesperrt ab
 plugin.listlocks.expires=gesperrt bis
-plugin.listlocks.no.locks.exist=Momentan existieren keine Sperren.
\ No newline at end of file
+plugin.listlocks.no.locks.exist=Momentan existieren keine Sperren.
+
+# InsertPage plugin
+plugin.insert.notfound=Seite konnte nicht gefunden werden!
+plugin.insert.recursion=Fehler: Zyklische Referenz - Du kannst eine Seite nicht in sie selbst einfügen!
+plugin.insert.nopermission=Du hast keine ausreichenden Rechte, um diese Seite zu sehen.
+plugin.insert.nopage1=Es gibt keine Seite namens
+plugin.insert.nopage2=Willst du sie
+plugin.insert.nopage3=erstellen?
+plugin.insert.definepage=Du musst eine Seite definieren!
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_it.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_it.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_it.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_it.properties Tue Nov 25 18:45:41 2008
@@ -46,4 +46,20 @@
 formoutput.missingargument = Argomento &#39;{0}&#39; richiesto dal Form plugin
 formselect.namemissing = Parametro &#39;name&#39; mancante sull'elemento Select.
 formtextarea.noneedtoshow = (non occorre mostrare il campo textarea)
-formtextarea.namemissing = Parametro &#39;name&#39; mancante sull'elemento Textarea.
\ No newline at end of file
+formtextarea.namemissing = Parametro &#39;name&#39; mancante sull'elemento Textarea.
+
+# ListLocks plugin
+plugin.listlocks.page=Pagina
+plugin.listlocks.locked.by=Bloccata da
+plugin.listlocks.acquired=Aquisiti
+plugin.listlocks.expires=Scade il
+plugin.listlocks.no.locks.exist=In questo momento non esitono blocchi.
+
+# InsertPage plugin
+plugin.insert.notfound=La pagina non &egrave; stata trovata.
+plugin.insert.recursion=Errore: Riferimento Circolare - non &grave; possibile includere una pagina dentro s&grave; stessa!
+plugin.insert.nopermission=Non avete i permessi per visualizzare questa pagina inclusa.
+plugin.insert.nopage1=Non esiste una pagina chiamata
+plugin.insert.nopage2=Vorreste
+plugin.insert.nopage3=crearla?
+plugin.insert.definepage=Dovete definire una pagina!
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_zh_CN.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_zh_CN.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_zh_CN.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/plugin/PluginResources_zh_CN.properties Tue Nov 25 18:45:41 2008
@@ -48,3 +48,10 @@
 formselect.namemissing = Select \u5143\u7d20\u7f3a\u5c11\u53c2\u6570 &#39;name&#39;\u3002
 formtextarea.noneedtoshow = \uff08\u73b0\u5728\u4e0d\u5fc5\u663e\u793a\u6587\u672c\u6846\uff09
 formtextarea.namemissing = Textarea \u5143\u7d20\u7f3a\u5c11\u53c2\u6570 &#39;name&#39;\u3002
+
+# ListLocks plugin
+plugin.listlocks.page=\u9875\u9762
+plugin.listlocks.locked.by=\u9501\u5b9a\u8005\u4e3a
+plugin.listlocks.acquired=\u5df2\u83b7\u5f97
+plugin.listlocks.expires=\u5df2\u8fc7\u671f
+plugin.listlocks.no.locks.exist=\u76ee\u524d\u4e0d\u5b58\u5728\u9501\u3002
\ No newline at end of file

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/templates/default_it.properties
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/templates/default_it.properties?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/templates/default_it.properties (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/etc/i18n/templates/default_it.properties Tue Nov 25 18:45:41 2008
@@ -7,8 +7,8 @@
 #
 # Common things
 
-common.nopage=Questa pagina non esiste ancora.  Perch&egrave; non la {0}?
-common.createit=la create
+common.nopage=Questa pagina non esiste ancora. Perch&egrave; non la {0}?
+common.createit=crei
 common.more=Segue...
 
 
@@ -45,8 +45,8 @@
 
 conflict.oops.title=Oops!
 conflict.oops=<p><b>Oops!  La pagina &egrave; stata modificata da altri mentre la stavi editando!</b></p>\
-    <p>Poich&egrave; il sistema non &egrave; in grado di determinare le differenze, dovete farlo manualmente.\
-    Il testo riportato qu&igrave; &egrave; quello della nuova pagina, con le modifiche fatte da te.\
+    <p>Poich&egrave; il sistema non &egrave; in grado di determinare le differenze, dovete farlo manualmente. \
+    Il testo riportato qu&igrave; &egrave; quello della nuova pagina, con le modifiche fatte da te. \
     Devi ora copiare il testo in un qualsiasi editor e modificare nuovamente la pagina.</p> \
     <p>Attenzione: quando tornate in editing, qualcun&#8217;altro potrebbe aver modificato ancora la pagina .... \
 	agisci velocemente.</p>
@@ -66,8 +66,8 @@
 
 # EditContent.jsp
 
-edit.locked=L&#8217;utente &#8220;{0}&#8221; ha iniziato a modificare questa pagina, ma non l&#8217;ha ancora salvata.\
-    Puoi continuare a modificare, ma attenzione, l&#8217;altra persona potrebbe non esserne molto contenta ...\
+edit.locked=L&#8217;utente &#8220;{0}&#8221; ha iniziato a modificare questa pagina, ma non l&#8217;ha ancora salvata. \
+    Puoi continuare a modificare, ma attenzione, l&#8217;altra persona potrebbe non esserne molto contenta ... \
     Sarebbe estremamente cortese attendere cha abbia finito - o attendere almeno che scada il lock, tra {1} minuti.
 edit.restoring=Stai per ripristinare la versione {0}. \
     Click su &#8220;Salva&#8221; per ripristinare.  Puoi anche modificare la pagina prima di ripristinarla.
@@ -90,7 +90,7 @@
     <strong>{0}</strong>. Normalmente, solo i membri del gruppo possono editare la \
     lista dei membri. Per default, la persona che crea un gruppo ne &egrave; membro.
 editgroup.saveerror=Non &egrave; possibile salvare il gruppo:&nbsp;
-editgroup.memberlist=I membri di questo gruppo. Inserite ogni nome utente o nome wiki\
+editgroup.memberlist=I membri di questo gruppo. Inserite ogni nome utente o nome wiki \
     separati da ritorni a capo.
 editgroup.savehelp=Se selezionate &#8220;Salva il grouppo,&#8221; questo gruppo ver&agrave; salvato come gruppo \
     chiamato <strong>{0}</strong>. Potete poi usare questo \
@@ -100,7 +100,7 @@
 # Favorites.jsp
 
 fav.myfavorites=I miei preferiti
-fav.nomenu=Per favore, create un {0}
+fav.nomenu=Per favore, crea un {0}
 fav.greet.anonymous=Utente anonimo
 fav.greet.asserted=Utente {0} (not autenticato)
 fav.greet.authenticated=Utente {0} (autenticato)
@@ -118,7 +118,7 @@
 find.noresults=Nessun risultato
 find.getprevious=I precedenti {0} risultati
 find.getnext=I successivi {0} risultati
-find.externalsearch=Prova qusta stessa ricerca su :
+find.externalsearch=Prova questa stessa ricerca su :
 find.submit.find=Cerca!
 find.submit.go=Vai!
 find.details=Mostra dettagli
@@ -132,7 +132,7 @@
 
 group.tab=Vedi il Gruppo
 #replaced by grp.deletegroup.confirm
-#group.areyousure=Sei sicuro di voler eliminare permanenetemente il gruppo "{0}"? \
+#group.areyousure=Sei sicuro di voler eliminare permanentemente il gruppo "{0}"? \
 #    Altri utenti potrebbero non poter pi&ugrave; accedere alle pagine i cui permessi referenziano questo gruppo. \\n\\n \
 #    Se selezioni OK, il gruppo verr&agrave; eliminato immediatamente.
 group.doesnotexist=Questo gruppo non esiste.
@@ -261,11 +261,11 @@
 login.lostpw.tab=Password dimenticata
 login.lostpw.title=Password dimenticata?
 login.lostpw.getnew=Ottienine una nuova!
-login.lostpw.heading=Reset Password
+login.lostpw.heading=Cambia la Password
 login.lostpw.help=Password dimenticata?  Inserisci l&#8217;indirizzo email che hai usato per registrarti.
 login.lostpw.name=Account email
-login.lostpw.submit=Reset password !
-login.lostpw.reset.clickhere=Click here
+login.lostpw.submit=Cambia la password !
+login.lostpw.reset.clickhere=Clicca qu&igrave;
 login.lostpw.reset.login={0} per collegarti una volta che hai ottenuto una nuova password.
 
 login.register.tab=Registra un nuovo utente
@@ -287,7 +287,7 @@
 newgroup.members.description=I membri di questo gruppo. \
     Inserite l&#8217;identificativo utente o il nome wiki di ogni utente separati da carriage returns.
 newgroup.instructions.end=Quando selezioni &#8220;Salva il gruppo,&#8221; \
-    questo gruppo verr&agrave; salvato. Puoi specificare il nome del gruppo\
+    questo gruppo verr&agrave; salvato. Puoi specificare il nome del gruppo \
     nelle liste di controllo degli accessi (ACL) delle diverse pagine.
 newgroup.creategroup=Crea il gruppo
 newgroup.defaultgroupname=MyGroup
@@ -363,7 +363,7 @@
 prefs.user.orientation=Stile dei preferiti
 prefs.user.orientation.left=Sinistra
 prefs.user.orientation.right=Destra
-prefs.user.editorareaheight=Altezza dell&#8217;aerea di editing
+#prefs.user.editorareaheight=Altezza dell&#8217;aerea di editing
 prefs.user.timeformat=Formato della data
 prefs.user.timezone=Seleziona la Time Zone
 prefs.user.timezone.server=[SERVER]
@@ -376,9 +376,9 @@
     Se non hai ancora creato un profilo, puoi dire {0} \
     chi sei &#8216;asserendo&#8217; un identit&agrave; (senza dire bugie ...).  \
     <br /> \
-    Attenzione, asserire il tuo nome in questo modo non &egrave; un vero modo di autenticarti\
+    Attenzione, asserire il tuo nome in questo modo non &egrave; un vero modo di autenticarti \
     perch&egrave; lascia solo un valore in un cookie senza richiedere una password. \
-    A seconda delle politiche di sicurezza impostate su questo wiki, potresti avere associati\
+    A seconda delle politiche di sicurezza impostate su questo wiki, potresti avere associati \
     privilegi limitati. {0} se preferisci essere identificato tramite identificativo utente e password.
 prefs.assertedname.create=Crea un nuovo profilo utente
 prefs.submit.setname=Nome utente
@@ -416,8 +416,8 @@
 prefs.email.description= (opzionale). Se perdi la tua password, \
     puoi richiederne una nuova - verr&agrave; inviata a questo indirizzo.
 
-prefs.cookie.info=Questo wiki si ricorda di t&egrave; usando i cookies, \
-    senza richiedere autenticazioni addizionali. Per usare questa\
+prefs.cookie.info=Questo wiki si ricorda di te usando i cookies, \
+    senza richiedere autenticazioni addizionali. Per usare questa \
     possibilit&agrave;, il tuo browser deve essere configurato in modo da accettare \
     cookies da questo indirizzo web. Quando selezioni &#8220;salva il profilo,&#8221; un cookie \
     verr&agrave; salvato dal tuo browser.
@@ -549,16 +549,16 @@
 editor.plain.posteditor=Inserisci Keyword+Tab:
 editor.plain.posteditor.title=shift+enter per il campo successivo
 
-editor.plain.smartpairs= Smart Typing Pairs
+editor.plain.smartpairs= Controllo automatico delle chiusure
 editor.plain.smartpairs.title= Controllo automatico delle chiusure di () [] {} &lt;&gt; &quot;&quot; &#39;&#39;
 editor.plain.tabcompletion=Completamento Tab (keyword+Tab)
 editor.plain.tabcompletion.title=Espansione automatica delle keyword in Wiki Markup
 
 #editor.plain.editassist=Assistente
 #editor.plain.editassist.title=Cambia i bottoni dell'assistente
-editor.plain.sneakpreview=Sneak Preview
-editor.plain.sneakpreview.title=Sneak Preview. \
-    Cliccate fuori dalla textarea per rinfrescare la sneak preview area.
+editor.plain.sneakpreview=Anteprima
+editor.plain.sneakpreview.title=Anteprima. \
+    Cliccate fuori dall&quot;area di testo per rinfrescare la area di anteprima.
 editor.plain.tbLink.title=link - Inserisci un link wiki 
 editor.plain.tbH1.title=h1 - Inserisci heading1
 editor.plain.tbH2.title=h2 - Inserisci heading2
@@ -616,7 +616,7 @@
 javascript.favs.hide=Click per nascondere i Favorites
 javascript.quick.edit=Modifica questa sezione
 
-javascript.quick.edit=[Edit]
+javascript.quick.edit=[Modifica]
 javascript.quick.edit.title=Modifica la sezione {0}...
 
 javascript.collapse=Click per chiudere
@@ -643,4 +643,9 @@
 javascript.tip.default.title=Altro...
 
 javascript.prefs.areyousure=Senza cliccare il bottone Save User Preferences, \
-	i tuoi cambiamenti verranno persi. Sei sicuro di voler abbandonare questa pagina?
\ No newline at end of file
+	i tuoi cambiamenti verranno persi. Sei sicuro di voler abbandonare questa pagina?
+	
+javascript.sectionediting.label = Riassunto della Sezione
+prefs.errorprefix.rename = Impossibile rinominare la pagina:&nbsp;
+prefs.user.sectionediting = Editing Sezioni
+prefs.user.sectionediting.text = Abilita l'editing delle sezioni con il collegamento<span class="editsection"><a href="#">[modifica]</a></span>

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/Release.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/Release.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/Release.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/Release.java Tue Nov 25 18:45:41 2008
@@ -77,7 +77,7 @@
      *  <p>
      *  If the build identifier is empty, it is not added.
      */
-    public static final String     BUILD         = "5";
+    public static final String     BUILD         = "12";
     
     /**
      *  This is the generic version string you should use

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/WikiEngine.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/WikiEngine.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/WikiEngine.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/WikiEngine.java Tue Nov 25 18:45:41 2008
@@ -496,7 +496,11 @@
                                                         m_saveUserInfo );
 
         m_useUTF8        = "UTF-8".equals( TextUtil.getStringProperty( props, PROP_ENCODING, "ISO-8859-1" ) );
-        m_baseURL        = TextUtil.getStringProperty( props, PROP_BASEURL, "" );
+        m_baseURL = TextUtil.getStringProperty( props, PROP_BASEURL, "" );
+        if( !m_baseURL.endsWith( "/" ) )
+        {
+            m_baseURL = m_baseURL + "/";
+        }
 
 
         m_beautifyTitle  = TextUtil.getBooleanProperty( props,

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/plugin/WeblogPlugin.java Tue Nov 25 18:45:41 2008
@@ -108,7 +108,7 @@
     static
     {
         // This is a pretty ugly, brute-force regex. But it will do for now...
-        HEADINGPATTERN = Pattern.compile("(<h[1-4].*>)(.*)(</h[1-4]>)", Pattern.CASE_INSENSITIVE);
+        HEADINGPATTERN = Pattern.compile("(<h[1-4][^>]*>)(.*)(</h[1-4]>)", Pattern.CASE_INSENSITIVE);
     }
 
     /**

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/ui/Installer.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/ui/Installer.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/ui/Installer.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/ui/Installer.java Tue Nov 25 18:45:41 2008
@@ -223,7 +223,6 @@
         // Get/sanitize base URL
         nullValue = m_request.getRequestURL().toString();
         nullValue = nullValue.substring( 0, nullValue.lastIndexOf('/') )+"/";
-        nullValue = m_props.getProperty( BASE_URL, nullValue );
         parseProperty( BASE_URL, nullValue );
         sanitizeURL( BASE_URL );
         
@@ -343,6 +342,10 @@
         String s = m_props.getProperty( key );
         s = TextUtil.replaceString( s, "\\", "/" );
         s = s.trim();
+        if (!s.endsWith( "/" )) {
+            s = s+"/" ;
+        }
+
         m_props.put( key, s );
     }
 

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/url/DefaultURLConstructor.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/url/DefaultURLConstructor.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/url/DefaultURLConstructor.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/com/ecyrd/jspwiki/url/DefaultURLConstructor.java Tue Nov 25 18:45:41 2008
@@ -115,7 +115,7 @@
             }
             catch( MalformedURLException e )
             {
-                m_pathPrefix = "/JSPWiki"; // Just a guess.
+                m_pathPrefix = "/JSPWiki/"; // Just a guess.
             }
         }
     }

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiContext.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiContext.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiContext.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiContext.java Tue Nov 25 18:45:41 2008
@@ -20,6 +20,11 @@
  */
 package org.apache.jspwiki.api;
 
+import java.io.IOException;
+import java.security.Permission;
+
+import javax.servlet.http.HttpServletResponse;
+
 
 /**
  *  The WikiContext represents a request which targets a WikiPage
@@ -28,7 +33,7 @@
  *  This class would be better named as "PageRequestContext" or something,
  *  but we need to keep at least some similarity with the 2.x API...
  */
-public interface WikiContext extends AbstractContext
+public interface WikiContext extends ActionContext
 {
 
 
@@ -73,24 +78,95 @@
     public WikiPage getRealPage();
 
     /**
-     *  Figure out to which page we are really going to.  Considers
-     *  special page names from the jspwiki.properties, and possible aliases.
-     *  This method forwards requests to
-     *  {@link com.ecyrd.jspwiki.ui.CommandResolver#getSpecialPageReference(String)}.
-     *  @return A complete URL to the new page to redirect to
-     *  @since 2.2
+     *  Returns the page that is being handled.
+     *
+     *  @return the page which was fetched.
      */
+    public WikiPage getPage();
 
-    // FIXME: Probably not needed for 3.0?
-    public String getRedirectURL();
+    /**
+     * Returns the target of this wiki context: a page, group name or JSP. If
+     * the associated Command is a PageCommand, this method returns the page's
+     * name. Otherwise, this method delegates to the associated Command's
+     * {@link com.ecyrd.jspwiki.ui.Command#getName()} method. Calling classes
+     * can rely on the results of this method for looking up canonically-correct
+     * page or group names. Because it does not automatically assume that the
+     * wiki context is a PageCommand, calling this method is inherently safer
+     * than calling <code>getPage().getName()</code>.
+     * @return the name of the target of this wiki context
+     * @see com.ecyrd.jspwiki.ui.PageCommand#getName()
+     * @see com.ecyrd.jspwiki.ui.GroupCommand#getName()
+     */
+    public String getName();
 
+    /**
+     *  Creates an URL for the given request context.
+     *
+     *  @param context e.g. WikiContext.EDIT
+     *  @param page The page to which to link
+     *  @return An URL to the page, honours the absolute/relative setting in jspwiki.properties
+     */
+    public String getURL( String context,
+                          String page );
 
     /**
-     *  Returns the page that is being handled.
+     *  Returns an URL from a page. It this WikiContext instance was constructed
+     *  with an actual HttpServletRequest, we will attempt to construct the
+     *  URL using HttpUtil, which preserves the HTTPS portion if it was used.
      *
-     *  @return the page which was fetched.
+     *  @param context The request context (e.g. WikiContext.UPLOAD)
+     *  @param page    The page to which to link
+     *  @param params  A list of parameters, separated with "&amp;"
+     *
+     *  @return An URL to the given context and page.
      */
-    public WikiPage getPage();
+    public String getURL( String context,
+                          String page,
+                          String params );
+
+    /**
+     *  A shortcut to generate a VIEW url.
+     *
+     *  @param page The page to which to link.
+     *  @return An URL to the page.  This honours the current absolute/relative setting.
+     */
+    // FIXME: Better to create a new URL creation class, which is WikiContext-specific?
+    public String getViewURL( String page );
+
+    /**
+     * Checks whether the current user has access to this wiki context,
+     * by obtaining the required Permission ({@link #requiredPermission()})
+     * and delegating the access check to
+     * {@link com.ecyrd.jspwiki.auth.AuthorizationManager#checkPermission(WikiSession, Permission)}.
+     * If the user is allowed, this method returns <code>true</code>;
+     * <code>false</code> otherwise. If access is allowed,
+     * the wiki context will be added to the request as an attribute
+     * with the key name {@link com.ecyrd.jspwiki.tags.WikiTagBase#ATTR_CONTEXT}.
+     * Note that this method will automatically redirect the user to
+     * a login or error page, as appropriate, if access fails. This is
+     * NOT guaranteed to be default behavior in the future.
+     * @param response the http response
+     * @return the result of the access check
+     * @throws IOException In case something goes wrong
+     */
+    // FIXME: Is this the correct place really for this?
+    public boolean hasAccess( HttpServletResponse response ) throws IOException;
 
+    /**
+     * Checks whether the current user has access to this wiki context (and
+     * optionally redirects if not), by obtaining the required Permission ({@link #requiredPermission()})
+     * and delegating the access check to
+     * {@link com.ecyrd.jspwiki.auth.AuthorizationManager#checkPermission(WikiSession, Permission)}.
+     * If the user is allowed, this method returns <code>true</code>;
+     * <code>false</code> otherwise. If access is allowed,
+     * the wiki context will be added to the request as attribute
+     * with the key name {@link com.ecyrd.jspwiki.tags.WikiTagBase#ATTR_CONTEXT}.
+     * @return the result of the access check
+     * @param response The servlet response object
+     * @param redirect If true, makes an automatic redirect to the response
+     * @throws IOException If something goes wrong
+     */
+    // FIXME: Is this the correct place really for this?
+    public boolean hasAccess( HttpServletResponse response, boolean redirect ) throws IOException;
 
 }

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiRenderer.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiRenderer.java?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiRenderer.java (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/org/apache/jspwiki/api/WikiRenderer.java Tue Nov 25 18:45:41 2008
@@ -51,11 +51,11 @@
     /**
      *  Returns the rendered content.
      */
-    public InputStream render( AbstractContext context, String content );
+    public InputStream render( ActionContext context, String content );
     
     /**
      *  Returns the rendered content as a String.  This is just a simplification
      *  for those content types where it can be rendered as a String.
      */
-    public String renderString( AbstractContext context, String content );
+    public String renderString( ActionContext context, String content );
 }

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-common.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-common.js?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-common.js (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-common.js Tue Nov 25 18:45:41 2008
@@ -64,6 +64,12 @@
 	trunc: function(size,elips){
 		if( !elips ) elips="...";
 		return (this.length<size) ? this : this.substring(0,size)+elips;
+	},
+	stripScripts: function(){
+		var text = this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi, function(){
+			return '';
+		});
+		return text;
 	}
 })
 
@@ -376,6 +382,7 @@
 		$('progressbar').setStyle('visibility','visible');
 		this.progressbar =
 		Wiki.jsonrpc.periodical(1000, this, ["progressTracker.getProgress",[progress],function(result){
+			result = result.stripScripts(); //xss vulnerability
 			if(!result.code) $('progressbar').getFirst().setStyle('width',result+'%').setHTML(result+'%');
 		}]);
 
@@ -828,6 +835,8 @@
 
 			var ul = new Element('ul',{'id':'recentItems'}).inject($('recentSearches').show());
 			this.recent.each(function(el){
+				// xss vulnerability JSPWIKI-384
+				el = el.stripScripts();				
 				new Element('a',{
 					'href':'#', 
 					'events': {'click':function(){ q.value = el; q.form.submit(); }}
@@ -898,7 +907,7 @@
 	},
 
 	submit: function(){ 
-		var v = this.query.value;
+		var v = this.query.value.stripScripts(); //xss vulnerability
 		if( v == this.query.defaultValue) this.query.value = '';
 		if( !this.recent ) this.recent=[];
 		if( !this.recent.test(v) ){
@@ -915,7 +924,7 @@
 	},
 
 	ajaxQuickSearch: function(){
-		var qv = this.query.value ;
+		var qv = this.query.value.stripScripts() ;
 		if( (qv==null) || (qv.trim()=="") || (qv==this.query.defaultValue) ) {
 			$('searchOutput').empty();
 			return;
@@ -1622,7 +1631,7 @@
 		if( !q && document.referrer.test("(?:\\?|&)(?:q|query)=([^&]*)","g") ) q = RegExp.$1;
 		if( !q ) return;
 
-		var words = decodeURIComponent(q);
+		var words = decodeURIComponent(q).stripScripts(); //xss vulnerability
 		words = words.replace( /\+/g, " " );
 		words = words.replace( /\s+-\S+/g, "" );
 		words = words.replace( /([\(\[\{\\\^\$\|\)\?\*\.\+])/g, "\\$1" ); //escape metachars

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-edit.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-edit.js?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-edit.js (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/scripts/jspwiki-edit.js Tue Nov 25 18:45:41 2008
@@ -655,11 +655,11 @@
 		this.cacheTextarea=ta.value;
 
 		if( this.sections ){
-			var	s = ta.value;
-			if( s.lastIndexOf("\n") + 1 != s.length ) ta.value += '\n';
-
-			s = ma.value;
-			ma.value = s.substring(0, ta.begin) + ta.value + s.substring(ta.end);
+			var	s = ma.value,
+				//insert \n to ensure the next line's !!!header remains at column 0.
+				addNewLine = ((ta.value.slice(-1) != '\n')  && (s.charAt(ta.end) =='!')) ? '\n' : '';
+			
+			ma.value = s.substring(0, ta.begin) + ta.value + addNewLine + s.substring(ta.end);
 			ta.end = ta.begin + ta.value.length;
 			this.onSectionLoad();  //refresh section-edit menu
 		}		

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/Favorites.jsp
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/Favorites.jsp?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/Favorites.jsp (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/Favorites.jsp Tue Nov 25 18:45:41 2008
@@ -78,7 +78,7 @@
 %%collapsebox-closed
 ! [My Favorites|{$username}Favorites]
 [{InsertPage page='{$username}Favorites' }]
-%% }]
+/% }]
   </wiki:Translate>
   </wiki:UserCheck>
 

Modified: incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/jspwiki.css
URL: http://svn.apache.org/viewvc/incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/jspwiki.css?rev=720714&r1=720713&r2=720714&view=diff
==============================================================================
--- incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/jspwiki.css (original)
+++ incubator/jspwiki/branches/JSPWIKI_2_9_STRIPES_BRANCH/src/webdocs/templates/default/jspwiki.css Tue Nov 25 18:45:41 2008
@@ -222,7 +222,7 @@
 .wikiform {
 }
 .wikiform tr {
-	vertical-align:middle;
+	vertical-align:top;
 }
 .wikiform td {
 }