[xwiki-notifications] [Issue] Moved: (XWIKI-2064) DBListClass and DBTreeListClass are building invalid SQL statements

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol moved XE-189 to XWIKI-2064:
--

  Project: XWiki Platform  (was: XWiki Enterprise)
  Key: XWIKI-2064  (was: XE-189)
Affects Version/s: 1.3 M1
   1.2.1
   (was: 1.3 M1)
   (was: 1.2.1)

 DBListClass and DBTreeListClass are building invalid SQL statements
 ---

 Key: XWIKI-2064
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2064
 Project: XWiki Platform
  Issue Type: Bug
Affects Versions: 1.3 M1, 1.2.1
Reporter: Yoshtec
 Assigned To: Yoshtec
Priority: Minor
 Attachments: dblist.patch


 Query build in DBListClass and DBTreeListClass is invalid since it contains a 
 , before the from statement.
 Thus resulting in Exceptions like:
 org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 
 1, column 35 [select idprop.value,idprop.value, from 
 com.xpn.xwiki.doc.XWikiDocument as doc, com.xpn.xwiki.objects.BaseObject as 
 obj, com.xpn.xwiki.objects.StringProperty as idprop where 
 doc.fullName=obj.name and obj.className='' and obj.id=idprop.id.id and 
 idprop.id.name='']
   at 
 org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
   at 
 org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
   at 
 org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:258)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
   at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77)
   at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:56)
   at 
 org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
   at 
 org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
   at 
 org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
   at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1699)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1659)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1648)
   at com.xpn.xwiki.store.XWikiCacheStore.search(XWikiCacheStore.java:420)
   at com.xpn.xwiki.XWiki.search(XWiki.java:1278)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.getDBList(DBListClass.java:102)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.getMap(DBListClass.java:128)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.displayView(DBListClass.java:445)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1338)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1318)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1385)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1395)
   at com.xpn.xwiki.api.Document.display(Document.java:857)
   at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
   at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
   at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
   at 
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
   at 
 org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
   at 
 org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
   at 
 org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
   at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
   at 
 com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
   at 
 

[xwiki-notifications] [Issue] Updated: (XWIKI-2064) DBListClass and DBTreeListClass are building invalid SQL statements

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2064:
--

 keywords: patch
Fix Version/s: 1.3 M2

 DBListClass and DBTreeListClass are building invalid SQL statements
 ---

 Key: XWIKI-2064
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2064
 Project: XWiki Platform
  Issue Type: Bug
Affects Versions: 1.2.1, 1.3 M1
Reporter: Yoshtec
 Assigned To: Yoshtec
Priority: Minor
 Fix For: 1.3 M2

 Attachments: dblist.patch


 Query build in DBListClass and DBTreeListClass is invalid since it contains a 
 , before the from statement.
 Thus resulting in Exceptions like:
 org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 
 1, column 35 [select idprop.value,idprop.value, from 
 com.xpn.xwiki.doc.XWikiDocument as doc, com.xpn.xwiki.objects.BaseObject as 
 obj, com.xpn.xwiki.objects.StringProperty as idprop where 
 doc.fullName=obj.name and obj.className='' and obj.id=idprop.id.id and 
 idprop.id.name='']
   at 
 org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
   at 
 org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
   at 
 org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:258)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
   at 
 org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
   at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:77)
   at org.hibernate.engine.query.HQLQueryPlan.init(HQLQueryPlan.java:56)
   at 
 org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
   at 
 org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
   at 
 org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
   at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1699)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1659)
   at 
 com.xpn.xwiki.store.XWikiHibernateStore.search(XWikiHibernateStore.java:1648)
   at com.xpn.xwiki.store.XWikiCacheStore.search(XWikiCacheStore.java:420)
   at com.xpn.xwiki.XWiki.search(XWiki.java:1278)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.getDBList(DBListClass.java:102)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.getMap(DBListClass.java:128)
   at 
 com.xpn.xwiki.objects.classes.DBListClass.displayView(DBListClass.java:445)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1338)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1318)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1385)
   at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1395)
   at com.xpn.xwiki.api.Document.display(Document.java:857)
   at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at 
 org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
   at 
 org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
   at 
 org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
   at 
 org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
   at 
 org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
   at 
 org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:448)
   at 
 org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
   at 
 org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:238)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:152)
   at 
 com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:95)
   at 
 com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:251)
   at 
 com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
   at com.xpn.xwiki.XWiki.include(XWiki.java:3206)
   at com.xpn.xwiki.api.XWiki.includeForm(XWiki.java:1409)
   at 

[xwiki-notifications] [Issue] Created: (XAPANELS-41) Create a Panel that allows sending a wiki page by email

2008-02-05 Thread Guillaume (JIRA)
Create a Panel that allows sending a wiki page by email
---

 Key: XAPANELS-41
 URL: http://jira.xwiki.org/jira/browse/XAPANELS-41
 Project: XWiki Panels Application
  Issue Type: New Feature
  Components: Panels
Reporter: Guillaume


See 
http://code.xwiki.org/xwiki/bin/view/Applications/SendPageByEmailApplication 
for a full description of the panel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Commented: (XWIKI-1079) LDAP Authentication

2008-02-05 Thread Thomas Mortagne (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XWIKI-1079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22279
 ] 

Thomas Mortagne commented on XWIKI-1079:


Hi,

As Vincent said I'm looking for adding groups support to XWiki LDAP and for now 
I'm fixing some problems in this patch about XWiki api use, documentation etc. 
As soon as I will finish the cleaning I will repost it as a real patch in this 
issue then continue work and testing based on it. I'm not a LDAP expert so it 
takes some times (in fact it's the first time I'm using it), sorry :)

Thanks,
Thomas

 LDAP Authentication
 ---

 Key: XWIKI-1079
 URL: http://jira.xwiki.org/jira/browse/XWIKI-1079
 Project: XWiki Platform
  Issue Type: Improvement
  Components: Admin, Authentication and Rights Management, Plugin - 
 Other, Wiki features
Affects Versions: 1.0 B6
Reporter: Gunter Leeb
 Assigned To: Sergiu Dumitriu
 Fix For: 1.3 M2

 Attachments: ldap.zip, LDAPAuthenticater.class, 
 LDAPAuthenticater.java, LDAPAuthenticater.java, LDAPAuthenticater.java, 
 ssl.zip, XWiki.zip


 I have finished the implementation of a substitude LDAP authentication class.
 The new features and changes:
 - Separate LDAP login and authentication validation
 - An LDAP group membership is first checked before a user can be 
 authenticated against LDAP
 - LDAP Groups are handled recursivly (groups in groups)
 - LDAP Groups and their members are cached with an expiration
 - LDAP attributes can update XWiki user attributes configurable at create 
 time or on every login
 - LDAP group membership can be sync'ed with XWiki group membership
 - If authentication with LDAP fails it still will try to authenticate against 
 the XWiki DB
 - detailed comments in xwiki.cfg
 - pretty much every detail of the behavior can be configured in xwiki.cfg
 - as far as I can see, all valuable features from the old LDAPAuthServiceImpl 
 are reimplemented (except for LDAP bind being sufficent for login implemented 
 by the check_level configuration)
 - I have tried to implement all the feature requests about LDAP that I have 
 heard about
 - any LDAP attribute can be used containing the XWiki name
 Known Issues:
 - joining an XWiki group or removing someone from a group does not appear to 
 work correctly
 - creating a user appears incomplete to me
 I tested against OpenLDAP and Novell eDirectory.
 I would like to ask for a code-read, verification of how the module is using 
 the XWiki APIs and testing in various environments.
 Most of all, I am looking for feedback. 
 This is not a final version!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XAPANELS-41) Create a Panel that allows sending a wiki page by email

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XAPANELS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XAPANELS-41:
---

keywords: patch

The patch is in the page on code.xwiki.org

 Create a Panel that allows sending a wiki page by email
 ---

 Key: XAPANELS-41
 URL: http://jira.xwiki.org/jira/browse/XAPANELS-41
 Project: XWiki Panels Application
  Issue Type: New Feature
  Components: Panels
Affects Versions: 1.2
Reporter: Guillaume

 See 
 http://code.xwiki.org/xwiki/bin/view/Applications/SendPageByEmailApplication 
 for a full description of the panel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XAPANELS-41) Create a Panel that allows sending a wiki page by email

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XAPANELS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XAPANELS-41:
---

Affects Version/s: 1.2

 Create a Panel that allows sending a wiki page by email
 ---

 Key: XAPANELS-41
 URL: http://jira.xwiki.org/jira/browse/XAPANELS-41
 Project: XWiki Panels Application
  Issue Type: New Feature
  Components: Panels
Affects Versions: 1.2
Reporter: Guillaume

 See 
 http://code.xwiki.org/xwiki/bin/view/Applications/SendPageByEmailApplication 
 for a full description of the panel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7291 - in xwiki-products/xwiki-enterprise-manager/trunk/distribution-test: . selenium-tests xmlrpc-tests

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 10:21:02 +0100 (Tue, 05 Feb 2008)
New Revision: 7291

Modified:
   xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/pom.xml
   
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/selenium-tests/pom.xml
   
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/xmlrpc-tests/pom.xml
Log:
Fix maven projects versions dependencies.

Modified: 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/pom.xml
===
--- xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/pom.xml 
2008-02-04 20:17:18 UTC (rev 7290)
+++ xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/pom.xml 
2008-02-05 09:21:02 UTC (rev 7291)
@@ -29,7 +29,7 @@
   parent
 groupIdcom.xpn.xwiki.products/groupId
 artifactIdxwiki-enterprise-manager-parent/artifactId
-version1.0-SNAPSHOT/version
+version1.1-SNAPSHOT/version
   /parent
   artifactIdxwiki-enterprise-manager-test/artifactId
   nameXWiki Products - Enterprise Manager - Functional Tests/name

Modified: 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/selenium-tests/pom.xml
===
--- 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/selenium-tests/pom.xml
  2008-02-04 20:17:18 UTC (rev 7290)
+++ 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/selenium-tests/pom.xml
  2008-02-05 09:21:02 UTC (rev 7291)
@@ -29,7 +29,7 @@
   parent
 groupIdcom.xpn.xwiki.products/groupId
 artifactIdxwiki-enterprise-manager-test/artifactId
-version1.0-SNAPSHOT/version
+version1.1-SNAPSHOT/version
   /parent
   artifactIdxwiki-enterprise-manager-test-selenium/artifactId
   nameXWiki Products - Enterprise Manager - Functional Selenium Tests/name

Modified: 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/xmlrpc-tests/pom.xml
===
--- 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/xmlrpc-tests/pom.xml
2008-02-04 20:17:18 UTC (rev 7290)
+++ 
xwiki-products/xwiki-enterprise-manager/trunk/distribution-test/xmlrpc-tests/pom.xml
2008-02-05 09:21:02 UTC (rev 7291)
@@ -29,7 +29,7 @@
   parent
 groupIdcom.xpn.xwiki.products/groupId
 artifactIdxwiki-enterprise-manager-test/artifactId
-version1.0-SNAPSHOT/version
+version1.1-SNAPSHOT/version
   /parent
   artifactIdxwiki-enterprise-manager-test-xmlrpc/artifactId
   nameXWiki Products - Enterprise Manager - Functional XMLRPC Tests/name

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7292 - xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 10:46:17 +0100 (Tue, 05 Feb 2008)
New Revision: 7292

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
Log:
XWIKI-2065: XWikiHibernateStore.deleteWiki don't works

Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
===
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
   2008-02-05 09:21:02 UTC (rev 7291)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
   2008-02-05 09:46:17 UTC (rev 7292)
@@ -184,11 +184,9 @@
 } else if (DatabaseProduct.HSQLDB == databaseProduct) {
 stmt.execute(DROP SCHEMA  + schema);
 } else {
-stmt.execute(create database  + schema);
+stmt.execute(DROP DATABASE  + schema);
 }
 
-stmt.execute(DROP DATABASE  + schema);
-
 endTransaction(context, true);
 } catch (Exception e) {
 Object[] args = {wikiName};

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7293 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 10:47:47 +0100 (Tue, 05 Feb 2008)
New Revision: 7293

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
Log:
XWIKI-2065: XWikiHibernateStore.deleteWiki don't works

Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
===
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
 2008-02-05 09:46:17 UTC (rev 7292)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.java
 2008-02-05 09:47:47 UTC (rev 7293)
@@ -205,11 +205,9 @@
 } else if (DatabaseProduct.HSQLDB == databaseProduct) {
 stmt.execute(DROP SCHEMA  + schema);
 } else {
-stmt.execute(create database  + schema);
+stmt.execute(DROP DATABASE  + schema);
 }
 
-stmt.execute(DROP DATABASE  + schema);
-
 endTransaction(context, true);
 } catch (Exception e) {
 Object[] args = {wikiName};

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2065) XWikiHibernateStore.deleteWiki don't works

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2065:
--

Description: 
A wrong patch was committed in XWIKI-1672 making this feature not work properly.


 XWikiHibernateStore.deleteWiki don't works
 --

 Key: XWIKI-2065
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2065
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Thomas Mortagne

 A wrong patch was committed in XWIKI-1672 making this feature not work 
 properly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XWIKI-2065) XWikiHibernateStore.deleteWiki don't works

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne closed XWIKI-2065.
--

Fix Version/s: 1.3 M2
   1.2.2
   Resolution: Fixed
 Assignee: Thomas Mortagne

 XWikiHibernateStore.deleteWiki don't works
 --

 Key: XWIKI-2065
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2065
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Thomas Mortagne
 Assigned To: Thomas Mortagne
 Fix For: 1.3 M2, 1.2.2


 A wrong patch was committed in XWIKI-1672 making this feature not work 
 properly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Commented: (XWIKI-2066) Migrator doesn't work well on a multi wiki install

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XWIKI-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22280
 ] 

Vincent Massol commented on XWIKI-2066:
---

The solution is to move the update schema code and the migrator in servlet 
context listeners.

 Migrator doesn't work well on a multi wiki install
 --

 Key: XWIKI-2066
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2066
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 The problem is that the update schema is done only when calling a URL and 
 thus only the corresponding database has the new schema updated. So for all 
 other dbs the xwikiversion table is not created and thus the migrator fails 
 with a table doesn't exist error...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2066) Migrator doesn't work well on a multi wiki install

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2066:
--

Fix Version/s: 1.3 M2
   1.2.2
 Assignee: Vincent Massol

 Migrator doesn't work well on a multi wiki install
 --

 Key: XWIKI-2066
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2066
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 The problem is that the update schema is done only when calling a URL and 
 thus only the corresponding database has the new schema updated. So for all 
 other dbs the xwikiversion table is not created and thus the migrator fails 
 with a table doesn't exist error...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2066) Migrator doesn't work well on a multi wiki install

2008-02-05 Thread Vincent Massol (JIRA)
Migrator doesn't work well on a multi wiki install
--

 Key: XWIKI-2066
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2066
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.3 M1, 1.2.1
Reporter: Vincent Massol


The problem is that the update schema is done only when calling a URL and thus 
only the corresponding database has the new schema updated. So for all other 
dbs the xwikiversion table is not created and thus the migrator fails with a 
table doesn't exist error...



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2066) Migrator fails to upgrade sub wiki databases

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2066:
--

Summary: Migrator fails to upgrade sub wiki databases  (was: Migrator 
doesn't work well on a multi wiki install)
Description: 
This is the problem that you may encounter:

{noformat}
2008-02-05 11:20:21,123 [http://localhost:8081/xwiki/bin/view/Main/] 
[http-8081-1] INFO  .AbstractXWikiMigrationManager  - Starting migration for 
database [jguard]... 
2008-02-05 11:20:21,138 [http://localhost:8081/xwiki/bin/view/Main/] 
[http-8081-1] WARN  util.JDBCExceptionReporter  - SQL Error: 1146, 
SQLState: 42S02 
2008-02-05 11:20:21,139 [http://localhost:8081/xwiki/bin/view/Main/] 
[http-8081-1] ERROR util.JDBCExceptionReporter  - Table 
'jguard.xwikidbversion' doesn't exist 
2008-02-05 11:20:21,143 [http://localhost:8081/xwiki/bin/view/Main/] 
[http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
database [jguard]... 
com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate 
execute
Wrapped Exception: could not execute query
at 
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:922)
at 
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:947)
at 
com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:61)
at 
com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:167)
at 
com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:117)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
at com.xpn.xwiki.XWiki.init(XWiki.java:672)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


Wrapped Exception:


com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 
'jguard.xwikidbversion' doesn't exist
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
at 
com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
at 
com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:139)
at 

[xwiki-notifications] [Issue] Commented: (XWIKI-2066) Migrator fails to upgrade sub wiki databases

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XWIKI-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22283
 ] 

Vincent Massol commented on XWIKI-2066:
---

Note that the current workaround is to:
* migrate only the main database to start with
* then to hit manually each database (using a corresponding view URL)
* then run the migration on all databases that you've hit


 Migrator fails to upgrade sub wiki databases
 

 Key: XWIKI-2066
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2066
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 This is the problem that you may encounter:
 {noformat}
 2008-02-05 11:20:21,123 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Starting migration for 
 database [jguard]... 
 2008-02-05 11:20:21,138 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] WARN  util.JDBCExceptionReporter  - SQL Error: 1146, 
 SQLState: 42S02 
 2008-02-05 11:20:21,139 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] ERROR util.JDBCExceptionReporter  - Table 
 'jguard.xwikidbversion' doesn't exist 
 2008-02-05 11:20:21,143 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
 database [jguard]... 
 com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate 
 execute
 Wrapped Exception: could not execute query
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:922)
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:947)
   at 
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:61)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:167)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:117)
   at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
   at com.xpn.xwiki.XWiki.init(XWiki.java:672)
   at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
   at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
   at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
 Wrapped Exception:
 com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 
 'jguard.xwikidbversion' doesn't exist
   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
 

[xwiki-notifications] [Issue] Created: (XWIKI-2067) Validate that XWiki Core works on newly released PostreSQL 8.3

2008-02-05 Thread Vincent Massol (JIRA)
Validate that XWiki Core works on newly released PostreSQL 8.3
--

 Key: XWIKI-2067
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2067
 Project: XWiki Platform
  Issue Type: Task
  Components: Storage
Affects Versions: 1.3 M1
Reporter: Vincent Massol
Priority: Minor
 Fix For: 1.3 M2


See http://www.postgresql.org/about/news.918

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2067) Validate that XWiki Core works on newly released PostreSQL 8.3

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2067:
--

Fix Version/s: 1.3 M2

 Validate that XWiki Core works on newly released PostreSQL 8.3
 --

 Key: XWIKI-2067
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2067
 Project: XWiki Platform
  Issue Type: Task
  Components: Storage
Affects Versions: 1.3 M1
Reporter: Vincent Massol
Priority: Minor
 Fix For: 1.3 M2


 See http://www.postgresql.org/about/news.918

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7295 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 14:04:34 +0100 (Tue, 05 Feb 2008)
New Revision: 7295

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
Log:
XWIKI-2068: Rights Manager does not clean deleted user/group in all wikis

Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
===
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
2008-02-05 13:04:28 UTC (rev 7294)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
2008-02-05 13:04:34 UTC (rev 7295)
@@ -210,7 +210,7 @@
 cleanDeletedUserOrGroupInLocalWiki(userOrGroupWiki, 
userOrGroupSpace,
 userOrGroupName, user, context);
 } else {
-List wikiList = context.getWiki().getVirtualWikiList();
+List wikiList = 
context.getWiki().getVirtualWikisDatabaseNames(context);
 
 String database = context.getDatabase();
 try {

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7294 - xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 14:04:28 +0100 (Tue, 05 Feb 2008)
New Revision: 7294

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
Log:
XWIKI-2068: Rights Manager does not clean deleted user/group in all wikis

Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
===
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
  2008-02-05 09:47:47 UTC (rev 7293)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManager.java
  2008-02-05 13:04:28 UTC (rev 7294)
@@ -210,7 +210,7 @@
 cleanDeletedUserOrGroupInLocalWiki(userOrGroupWiki, 
userOrGroupSpace,
 userOrGroupName, user, context);
 } else {
-List wikiList = context.getWiki().getVirtualWikiList();
+List wikiList = 
context.getWiki().getVirtualWikisDatabaseNames(context);
 
 String database = context.getDatabase();
 try {

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2068) Rights Manager does not clean deleted user/group in all wikis

2008-02-05 Thread Thomas Mortagne (JIRA)
Rights Manager does not clean deleted user/group in all wikis
-

 Key: XWIKI-2068
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2068
 Project: XWiki Platform
  Issue Type: Bug
  Components: Authentication and Rights Management
Affects Versions: 1.3 M1, 1.2.1
Reporter: Thomas Mortagne


Rights Manager use the wrong method to get all wikis.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XAWM-58) Add acces to Wiki Manager context's message tool

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XAWM-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne closed XAWM-58.
---

Resolution: Fixed

 Add acces to Wiki Manager context's message tool
 

 Key: XAWM-58
 URL: http://jira.xwiki.org/jira/browse/XAWM-58
 Project: XWiki Wiki Manager Application
  Issue Type: Improvement
  Components: Plugin
Affects Versions: 1.0
Reporter: Thomas Mortagne
 Assigned To: Thomas Mortagne
 Fix For: 1.1




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XAWM-57) Delete database when deleting virtual wiki

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XAWM-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne closed XAWM-57.
---

Resolution: Fixed

 Delete database when deleting virtual wiki
 --

 Key: XAWM-57
 URL: http://jira.xwiki.org/jira/browse/XAWM-57
 Project: XWiki Wiki Manager Application
  Issue Type: Improvement
  Components: Plugin
Affects Versions: 1.0
Reporter: Thomas Mortagne
 Assigned To: Thomas Mortagne
 Fix For: 1.1




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XWIKI-2068) Rights Manager does not clean deleted user/group in all wikis

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne closed XWIKI-2068.
--

Fix Version/s: 1.3 M2
   1.1.3
   Resolution: Fixed
 Assignee: Thomas Mortagne

 Rights Manager does not clean deleted user/group in all wikis
 -

 Key: XWIKI-2068
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2068
 Project: XWiki Platform
  Issue Type: Bug
  Components: Authentication and Rights Management
Affects Versions: 1.2.1, 1.3 M1
Reporter: Thomas Mortagne
 Assigned To: Thomas Mortagne
 Fix For: 1.3 M2, 1.1.3


 Rights Manager use the wrong method to get all wikis.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7296 - in xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main: java/com/xpn/xwiki/plugin/globalsearch java/com/xpn/xwiki/plugin/wikimanager java/com/xpn/xwiki/plugin/wikima

2008-02-05 Thread SVN
Author: tmortagne
Date: 2008-02-05 14:45:31 +0100 (Tue, 05 Feb 2008)
New Revision: 7296

Modified:
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearch.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearchMessageTool.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearchPluginApi.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/WikiManager.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/WikiManagerException.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/WikiManagerMessageTool.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/WikiManagerPluginApi.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/doc/Wiki.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/wikimanager/doc/XWikiServerClass.java
   
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/resources/wikimanager/ApplicationResources.properties
Log:
XAWM-57: Delete database when deleting virtual wiki
XAWM-58: Add access to Wiki Manager context's message tool

Modified: 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearch.java
===
--- 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearch.java
   2008-02-05 13:04:34 UTC (rev 7295)
+++ 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearch.java
   2008-02-05 13:45:31 UTC (rev 7296)
@@ -25,11 +25,6 @@
 final class GlobalSearch
 {
 /**
- * Key to use with [EMAIL PROTECTED] XWikiContext#get(Object)}.
- */
-public static final String MESSAGETOOL_CONTEXT_KEY = 
globalsearchmessagetool;
-
-/**
  * The logging tool.
  */
 protected static final Log LOG = LogFactory.getLog(GlobalSearch.class);

Modified: 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearchMessageTool.java
===
--- 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearchMessageTool.java
2008-02-05 13:04:34 UTC (rev 7295)
+++ 
xwiki-platform/xwiki-plugins/trunk/wiki-manager/src/main/java/com/xpn/xwiki/plugin/globalsearch/GlobalSearchMessageTool.java
2008-02-05 13:45:31 UTC (rev 7296)
@@ -1,6 +1,7 @@
 package com.xpn.xwiki.plugin.globalsearch;
 
 import java.util.Locale;
+import java.util.ResourceBundle;
 
 import com.xpn.xwiki.XWikiContext;
 import 
com.xpn.xwiki.plugin.applicationmanager.core.plugin.XWikiPluginMessageTool;
@@ -16,6 +17,11 @@
 public class GlobalSearchMessageTool extends XWikiPluginMessageTool
 {
 /**
+ * Key to use with [EMAIL PROTECTED] XWikiContext#get(Object)}.
+ */
+public static final String MESSAGETOOL_CONTEXT_KEY = 
globalsearchmessagetool;
+
+/**
  * Used as [EMAIL PROTECTED] GlobalSearchException} message when provided 
field does not exist in the
  * document.
  */
@@ -41,6 +47,24 @@
 globalsearch.plugin.log.getdocumentfromname;
 
 /**
+ * Default bundle manager where to find translated messages.
+ * 
+ * @since 1.1
+ */
+private static final GlobalSearchMessageTool DEFAULTMESSAGETOOL = new 
GlobalSearchMessageTool();
+
+/**
+ * Create default WikiManagerMessageTool. Only look at WikiManager 
properties file with system
+ * [EMAIL PROTECTED] Locale}.
+ * 
+ * @since 1.1
+ */
+private GlobalSearchMessageTool()
+{
+super(ResourceBundle.getBundle(GlobalSearchPlugin.PLUGIN_NAME + 
/ApplicationResources));
+}
+
+/**
  * Call for [EMAIL PROTECTED] 
XWikiPluginMessageTool#XWikiPluginMessageTool(ResourceBundle, XWikiContext)}.
  * Construct ResourceBundle based on [EMAIL PROTECTED] 
GlobalSearchPlugin#PLUGIN_NAME} +
  * /ApplicationResources.
@@ -54,4 +78,19 @@
 {
 super(locale, plugin, context);
 }
+
+/**
+ * Get Global Search message tool registered in XWiki context. If not 
return default.
+ * 
+ * @param context the XWiki context from which to get message tool.
+ * @return the default Global Search message tool.
+ * @since 1.1
+ */
+public static GlobalSearchMessageTool getDefault(XWikiContext context)
+{
+Object messagetool = context.get(MESSAGETOOL_CONTEXT_KEY);
+
+return messagetool != null  messagetool instanceof 
GlobalSearchMessageTool
+? 

[xwiki-notifications] Build XWiki Enterprise Manager::Trunk #1203 failed

2008-02-05 Thread teamcity
Build XWiki Enterprise Manager::Trunk #1203 failed 
Agent: Default agent
Build results: 
http://teamcity.xwiki.org/viewLog.html?buildId=8480buildTypeId=bt11

Changes included (1 change)

Change 7291 by tmortagne (3 files):
Fix maven projects versions dependencies.

see more information about changed files: 
http://teamcity.xwiki.org/viewLog.html?tab=buildChangesDivbuildId=8480buildTypeId=bt11



Configure email notifications: 
http://teamcity.xwiki.org/profile.html?init=1#notifications
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2069) Image macro in XWiki link syntax is not supported

2008-02-05 Thread Thomas Mortagne (JIRA)
Image macro in XWiki link syntax is not supported
-

 Key: XWIKI-2069
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2069
 Project: XWiki Platform
  Issue Type: Bug
  Components: Rendering
Affects Versions: 1.3 M1, 1.2.1
Reporter: Thomas Mortagne


Reproduce:
[{animage.jpg}Some.Page]

it just generate  an url with  # anchor added to current url.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7298 - in xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin: . src/main/java/com/xpn/xwiki/tool/xar

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-05 15:09:55 +0100 (Tue, 05 Feb 2008)
New Revision: 7298

Modified:
   xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/pom.xml
   
xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/AbstractXarMojo.java
   
xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/XarMojo.java
Log:
XTOOLS-22 Allow to set a list of includes and excludes when packing/unpacking a 
XAR

* Removed the dependency towards maven-archive and maven-project and replaced 
it with a dependency to plexus archiver (previously 
inherited from mvn archiver) upgrading that one to 1.0-alpha-9 to be able to 
use the FileSelector feature of the unarchiver.

* Added the filtering to both Xar and Unxar mojos



Modified: xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/pom.xml
===
--- xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/pom.xml   
2008-02-05 13:59:17 UTC (rev 7297)
+++ xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/pom.xml   
2008-02-05 14:09:55 UTC (rev 7298)
@@ -38,18 +38,18 @@
   groupIdorg.apache.maven/groupId
   artifactIdmaven-plugin-api/artifactId
   version2.0/version
-  /dependency
+/dependency
 dependency
   groupIdorg.apache.maven/groupId
-  artifactIdmaven-archiver/artifactId
-  version2.2/version
-/dependency
+  artifactIdmaven-project/artifactId
+  version2.0.4/version
+/dependency  
+   dependency
+ groupIdorg.codehaus.plexus/groupId
+ artifactIdplexus-archiver/artifactId
+ version1.0-alpha-9/version
+   /dependency
 dependency
-  groupIdorg.codehaus.plexus/groupId
-  artifactIdplexus-utils/artifactId
-  version1.4/version
-/dependency
-dependency
   groupIdorg.apache.maven/groupId
   artifactIdmaven-artifact/artifactId
   version2.0/version

Modified: 
xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/AbstractXarMojo.java
===
--- 
xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/AbstractXarMojo.java
 2008-02-05 13:59:17 UTC (rev 7297)
+++ 
xwiki-platform/xwiki-tools/trunk/build-tools/build-xar-plugin/src/main/java/com/xpn/xwiki/tool/xar/AbstractXarMojo.java
 2008-02-05 14:09:55 UTC (rev 7298)
@@ -1,14 +1,12 @@
 package com.xpn.xwiki.tool.xar;
 
 import java.io.File;
-import java.io.InputStream;
-import java.util.ArrayList;
-import java.util.List;
 
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
-import org.codehaus.plexus.archiver.ArchiveFileFilter;
 import org.codehaus.plexus.archiver.zip.ZipUnArchiver;
+import org.codehaus.plexus.components.io.fileselectors.FileSelector;
+import 
org.codehaus.plexus.components.io.fileselectors.IncludeExcludeFileSelector;
 import org.codehaus.plexus.logging.Logger;
 import org.codehaus.plexus.logging.console.ConsoleLogger;
 
@@ -35,6 +33,54 @@
 protected static final String PACKAGE_XML = package.xml;
 
 /**
+ * List of files to include. Specified as fileset patterns.
+ *
+ * @parameter
+ */
+protected String[] includes;
+ 
+/**
+ * List of files to exclude. Specified as fileset patterns.
+ *
+ * @parameter
+ */
+protected String[] excludes;
+
+   /**
+* Default excludes
+*/
+private static final String[] DEFAULT_EXCLUDES = null;
+
+   /**
+* Default includes
+*/
+private static final String[] DEFAULT_INCLUDES = new String[] { **/** };
+
+/**
+ * @return the includes
+ */
+protected String[] getIncludes()
+{
+if ( includes != null  includes.length  0 )
+{
+return includes;
+}
+return DEFAULT_INCLUDES;
+}
+
+/**
+ * @return the excludes
+ */
+protected String[] getExcludes()
+{
+if ( excludes != null  excludes.length  0 )
+{
+return excludes;
+}
+return DEFAULT_EXCLUDES; 
+}
+
+/**
  * Unpacks the XAR file (exclude the package.xml file if it exists).
  * 
  * @param file the file to be unpacked.
@@ -51,7 +97,13 @@
 unArchiver.enableLogging(new ConsoleLogger(Logger.LEVEL_ERROR, 
logName));
 unArchiver.setSourceFile(file);
 unArchiver.setDestDirectory(location);
-
+
+FileSelector[] selectors;
+
+IncludeExcludeFileSelector fs = new IncludeExcludeFileSelector();
+fs.setIncludes(getIncludes());
+fs.setExcludes(getExcludes());
+
 // Ensure that we don't overwrite XML document files present in 
this 

[xwiki-notifications] [Issue] Created: (XEM-92) When in sub wiki the URL of the user page in the upper right corner in wrong if not local user

2008-02-05 Thread Thomas Mortagne (JIRA)
When in sub wiki the URL of the user page in the upper right corner in wrong if 
not local user
--

 Key: XEM-92
 URL: http://jira.xwiki.org/jira/browse/XEM-92
 Project: XWiki Enterprise Manager
  Issue Type: Bug
Affects Versions: 1.0
Reporter: Thomas Mortagne
 Assigned To: Thomas Mortagne




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2069) Image macro breaks the XWiki link syntax generation

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne updated XWIKI-2069:
---

Summary: Image macro breaks the XWiki link syntax generation  (was: Image 
macro in XWiki link syntax is not supported)

 Image macro breaks the XWiki link syntax generation
 ---

 Key: XWIKI-2069
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2069
 Project: XWiki Platform
  Issue Type: Bug
  Components: Rendering
Affects Versions: 1.2.1, 1.3 M1
Reporter: Thomas Mortagne

 Reproduce:
 [{animage.jpg}Some.Page]
 it just generate  an url with  # anchor added to current url.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XSTOUCAN-2) correction de style.css

2008-02-05 Thread Laurent Lunati (JIRA)
correction de style.css
---

 Key: XSTOUCAN-2
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-2
 Project: XWiki Toucan Skin
  Issue Type: Sub-task
Reporter: Laurent Lunati
Priority: Minor


correction faite sur style.css à reintégrer dans la skin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XSTOUCAN-1) Create Toucan skin from xwiki.org

2008-02-05 Thread Laurent Lunati (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent Lunati updated XSTOUCAN-1:
--

Attachment: black-edit.png

black-edit.png : image à ajouter dans /images ... un oubli :)   j'ai aussi 
corrigé le style associé pour eviter les conflit avec les boites flottantes 
placé juste aprés un titre

 Create Toucan skin from xwiki.org
 -

 Key: XSTOUCAN-1
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-1
 Project: XWiki Toucan Skin
  Issue Type: Task
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.0

 Attachments: black-edit.png


 Move the skin on xwiki.org (as of 31/01/2008) to SVN and name it Toucan.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2071) Pages containing only a right aligned image breaks rendering

2008-02-05 Thread Thomas Mortagne (JIRA)
Pages containing only a right aligned image breaks rendering


 Key: XWIKI-2071
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2071
 Project: XWiki Platform
  Issue Type: Bug
  Components: Rendering
Affects Versions: 1.2.1
Reporter: Thomas Mortagne




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2071) Pages containing only a right aligned image breaks rendering

2008-02-05 Thread Thomas Mortagne (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne updated XWIKI-2071:
---

Attachment: XWiki - Test - WebHome_1202223540611.png

attached screenshot

 Pages containing only a right aligned image breaks rendering
 

 Key: XWIKI-2071
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2071
 Project: XWiki Platform
  Issue Type: Bug
  Components: Rendering
Affects Versions: 1.2.1
Reporter: Thomas Mortagne
 Attachments: XWiki - Test - WebHome_1202223540611.png




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Commented: (XWIKI-2069) Image macro in XWiki link syntax is not supported

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XWIKI-2069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22285
 ] 

Vincent Massol commented on XWIKI-2069:
---

This is not a bug. It's by design...

 Image macro in XWiki link syntax is not supported
 -

 Key: XWIKI-2069
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2069
 Project: XWiki Platform
  Issue Type: Bug
  Components: Rendering
Affects Versions: 1.2.1, 1.3 M1
Reporter: Thomas Mortagne

 Reproduce:
 [{animage.jpg}Some.Page]
 it just generate  an url with  # anchor added to current url.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XSTOUCAN-2) correction de style.css

2008-02-05 Thread Laurent Lunati (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent Lunati updated XSTOUCAN-2:
--

Attachment: style.css

changements :   reintégration des styles spécifiques IE, correction des panels 
et floatingbox pour usage avec les vm d'albatross, correction des styles des 
pages import/export + nettoyage

 correction de style.css
 ---

 Key: XSTOUCAN-2
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-2
 Project: XWiki Toucan Skin
  Issue Type: Sub-task
Reporter: Laurent Lunati
Priority: Minor
 Attachments: style.css


 correction faite sur style.css à reintégrer dans la skin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2070) The syntax used by wysiwyg to add link on a image is not supported

2008-02-05 Thread Thomas Mortagne (JIRA)
The syntax used by wysiwyg to add link on a image is not supported
--

 Key: XWIKI-2070
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2070
 Project: XWiki Platform
  Issue Type: Bug
  Components: Editor - WYSIWYG
Affects Versions: 1.3 M1, 1.2.1
Reporter: Thomas Mortagne


When using wysiwy editor to set a link on an image it generate somthing like : 
[{animage.jpg}Some.Page]
This syntax is not supported by the rendering engine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XSTOUCAN-2) correction de style.css

2008-02-05 Thread Laurent Lunati (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent Lunati updated XSTOUCAN-2:
--

Attachment: black-edit.png

black edit.png : image manquante à réintégrer dans /images

 correction de style.css
 ---

 Key: XSTOUCAN-2
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-2
 Project: XWiki Toucan Skin
  Issue Type: Sub-task
Reporter: Laurent Lunati
Priority: Minor
 Attachments: black-edit.png, style.css


 correction faite sur style.css à reintégrer dans la skin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XSTOUCAN-1) Create Toucan skin from xwiki.org

2008-02-05 Thread Laurent Lunati (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-1?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Laurent Lunati updated XSTOUCAN-1:
--

Attachment: style.css

style.css   with this  version  you can :

*  remove macro.vm from the skin
*  remove  htmlheader.vm


*to remove htmlheader.vm from the skin you have to add a specific class on the 
albatross/htmlheader.vm body tag :*
{code}
  #if(($context.action==inline)||($context.action==edit) || 
($context.action==admin))
body onunload=return false; cancelEdit()
  onload=prepareCancelEdit(); createColorPicker(); id=body 
class=$context.database ${context.action}body #if($showLeftPanels == 
0)hideleft#end#if($showRightPanels == 0)hideright#end#if($hidecolumns  
($!hidecolumns == 1))hidelefthideright#end
  #else
body id=body class=$context.database ${context.action}body 
#if($showLeftPanels == 0)hideleft#end#if($showRightPanels == 
0)hideright#end#if($hidecolumns  ($!hidecolumns == 
1))hidelefthideright#end
  #end

{code}

 Create Toucan skin from xwiki.org
 -

 Key: XSTOUCAN-1
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-1
 Project: XWiki Toucan Skin
  Issue Type: Task
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.0

 Attachments: black-edit.png, style.css


 Move the skin on xwiki.org (as of 31/01/2008) to SVN and name it Toucan.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Commented: (XWIKI-654) Rewrite the Rendering engine

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XWIKI-654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22293
 ] 

Vincent Massol commented on XWIKI-654:
--

Comparison of some HTML parsers in Java: 
http://www.lumidant.com/blog/java-html-parsing-library-comparison/

 Rewrite the Rendering engine
 

 Key: XWIKI-654
 URL: http://jira.xwiki.org/jira/browse/XWIKI-654
 Project: XWiki Platform
  Issue Type: New Feature
  Components: Rendering
Affects Versions: 1.3 M1
Reporter: Sergiu Dumitriu
 Assigned To: Vincent Massol
 Fix For: Future


 Using Wikilmodel or Doxia for example.
 See the discussion at http://tinyurl.com/yohz52

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-654) Rewrite the Rendering engine

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-654:
-

Description: 
Using Wikimodel or Doxia for example.

See the discussion at http://tinyurl.com/yohz52


  was:
Using Wikilmodel or Doxia for example.

See the discussion at http://tinyurl.com/yohz52



 Rewrite the Rendering engine
 

 Key: XWIKI-654
 URL: http://jira.xwiki.org/jira/browse/XWIKI-654
 Project: XWiki Platform
  Issue Type: New Feature
  Components: Rendering
Affects Versions: 1.3 M1
Reporter: Sergiu Dumitriu
 Assigned To: Vincent Massol
 Fix For: Future


 Using Wikimodel or Doxia for example.
 See the discussion at http://tinyurl.com/yohz52

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Deleted: (XSTOUCAN-2) correction de style.css

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol deleted XSTOUCAN-2:
--


 correction de style.css
 ---

 Key: XSTOUCAN-2
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-2
 Project: XWiki Toucan Skin
  Issue Type: Sub-task
Reporter: Laurent Lunati
Priority: Minor

 correction faite sur style.css à reintégrer dans la skin

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

   
___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-654) Rewrite the Rendering engine

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-654:
-

  Component/s: Rendering
   (was: Core)
   (was: Editor - Wiki)
   (was: Wiki features)
Affects Version/s: 1.3 M1
 Assignee: Vincent Massol  (was: Sergiu Dumitriu)

Status: started work in the sandbox here:
http://svn.xwiki.org/svnroot/sandbox/components/xwiki-rendering/

 Rewrite the Rendering engine
 

 Key: XWIKI-654
 URL: http://jira.xwiki.org/jira/browse/XWIKI-654
 Project: XWiki Platform
  Issue Type: New Feature
  Components: Rendering
Affects Versions: 1.3 M1
Reporter: Sergiu Dumitriu
 Assigned To: Vincent Massol
 Fix For: Future


 Using Wikilmodel or Doxia for example.
 See the discussion at http://tinyurl.com/yohz52

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7299 - in xwiki-products/xwiki-watch/trunk: gwt/src/main/java/com/xpn/xwiki/watch/client gwt/src/main/java/com/xpn/xwiki/watch/client/data gwt/src/main/java/com/xpn/xwiki/watch/

2008-02-05 Thread SVN
Author: lucaa
Date: 2008-02-05 17:33:27 +0100 (Tue, 05 Feb 2008)
New Revision: 7299

Added:
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/SendPressReviewEmail
Removed:
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/wizard/PressReviewMailDialog.java
Modified:
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/Constants.java
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/PressReview
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations.fr
Log:

XWATCH-13: Allow to send a press review by email
Added the SendPressReviewEmail document that uses the mailsender plugin and the 
PressReview document to generate and send the press review by email. Changed 
PressReview formatting to match the email requirements, the DataManager to 
include a email sending function and the PressReviewMailDialog to invoke it. 
Also styled the PressReviewMailDialog.



Modified: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/Constants.java
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/Constants.java
2008-02-05 14:09:55 UTC (rev 7298)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/Constants.java
2008-02-05 16:33:27 UTC (rev 7299)
@@ -61,6 +61,7 @@
 public static final String PAGE_TAGCLOUD = TagCloud;
 public static final String PAGE_LOADING_STATUS = LoadingStatus;
 public static final String PAGE_PREVIEW_FEED = PreviewFeed;
+public static final String PAGE_EMAIL_PRESSREVIEW = SendPressReviewEmail;
 
 public static final String IMAGE_PRESS_REVIEW = pressreview.png;
 public static final String IMAGE_ANALYSIS = analysis.png;

Modified: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
 2008-02-05 14:09:55 UTC (rev 7298)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
 2008-02-05 16:33:27 UTC (rev 7299)
@@ -460,4 +460,13 @@
 watch.getXWikiServiceInstance().getDocumentContent(pressReviewPage, 
true, map, cb);
 }
 
+public void sendEmail(FilterStatus filterStatus, String sendEmailPage, 
String mailSubject, 
+  String[] mailTo, String mailContent, AsyncCallback 
cb) {
+Map map = filterStatus.getMap();
+map.put(space, watch.getWatchSpace());
+map.put(address, mailTo);
+map.put(subject, mailSubject);
+map.put(content, mailContent);
+watch.getXWikiServiceInstance().getDocumentContent(sendEmailPage, 
true, map, cb);
+}
 }

Added: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
  (rev 0)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
  2008-02-05 16:33:27 UTC (rev 7299)
@@ -0,0 +1,130 @@
+package com.xpn.xwiki.watch.client.ui.dialog;
+
+import com.xpn.xwiki.watch.client.Constants;
+import com.xpn.xwiki.watch.client.Watch;
+import com.xpn.xwiki.gwt.api.client.app.ModalMessageDialogBox;
+import com.xpn.xwiki.gwt.api.client.app.XWikiAsyncCallback;
+import com.xpn.xwiki.gwt.api.client.dialog.Dialog;
+import com.google.gwt.user.client.ui.*;
+import com.google.gwt.user.client.Window;
+
+/**
+ * See the NOTICE file distributed with this work for additional
+ * information regarding copyright ownership.
+ * p/
+ * This is free software;you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation;either version2.1of
+ * the License,or(at your option)any later version.
+ * p/
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY;without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the GNU
+ * Lesser General Public License for more details.
+ * p/
+ * You should have received a copy of the GNU Lesser General Public
+ * License 

[xwiki-notifications] [Issue] Commented: (XASTATS-7) Make application skin independent of the platform skin

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XASTATS-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22294
 ] 

Vincent Massol commented on XASTATS-7:
--

FWIW Laurent has made the following CSS snippet for the Toucan skin:

{noformat}
/* CSS Rules for the Statistics Application */
table.stats{
width:100%;
}
table.stats th{
font-weight:normal;
color:#33;
border-bottom:1px solid #DD;
border-top:1px solid #DD;
padding-bottom:2px;
}
table.stats td{
color:#88;
}
table.stats th.numeric, table.stats td.numeric{
text-align:right;
padding-right:6px;
width:70px;
}


#body #userstable,#body #groupstable,#body #usersandgroupstable {
left:0px;
}
{noformat}

We need to decide what strategy we want to use

 Make application skin independent of the platform skin
 --

 Key: XASTATS-7
 URL: http://jira.xwiki.org/jira/browse/XASTATS-7
 Project: XWiki Statistics Application
  Issue Type: Improvement
  Components: Documents
Affects Versions: 1.0.2
 Environment: Any
Reporter: Marius Dumitru Florea
 Assigned To: Marius Dumitru Florea

 The skin of the Statistics Application is strongly coupled with the Albatross 
 platform skin. In Stats.Skin page there is a XWikiSkins object where the 
 Albatross main CSS file has been copypasted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XASTATS-7) Make application skin independent of the platform skin

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XASTATS-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XASTATS-7:
-

Affects Version/s: 1.0.2

 Make application skin independent of the platform skin
 --

 Key: XASTATS-7
 URL: http://jira.xwiki.org/jira/browse/XASTATS-7
 Project: XWiki Statistics Application
  Issue Type: Improvement
  Components: Documents
Affects Versions: 1.0.2
 Environment: Any
Reporter: Marius Dumitru Florea
 Assigned To: Marius Dumitru Florea

 The skin of the Statistics Application is strongly coupled with the Albatross 
 platform skin. In Stats.Skin page there is a XWikiSkins object where the 
 Albatross main CSS file has been copypasted.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XASTATS-2) Document the Statistics application on xwiki.org

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XASTATS-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol closed XASTATS-2.


Resolution: Fixed

Seems done.

 Document the Statistics application on xwiki.org
 

 Key: XASTATS-2
 URL: http://jira.xwiki.org/jira/browse/XASTATS-2
 Project: XWiki Statistics Application
  Issue Type: Task
Affects Versions: 1.0
Reporter: Vincent Massol
 Assigned To: Marius Dumitru Florea
 Fix For: 1.1


 This is a prerequisite for releasing XE 1.2RC1

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Moved: (XSALBATROSS-3) Provide CSS hooks to allow to style Panels selectively

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSALBATROSS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol moved XWIKI-2053 to XSALBATROSS-3:
-

  Project: XWiki Albatross Skin  (was: XWiki Platform)
  Key: XSALBATROSS-3  (was: XWIKI-2053)
  Component/s: (was: Macros  Filters)
Fix Version/s: 1.1
   (was: 1.3 M2)
Affects Version/s: 1.0
   (was: 1.3 M1)

 Provide CSS hooks to allow to style Panels selectively
 --

 Key: XSALBATROSS-3
 URL: http://jira.xwiki.org/jira/browse/XSALBATROSS-3
 Project: XWiki Albatross Skin
  Issue Type: Improvement
Affects Versions: 1.0
Reporter: Vincent Massol
 Assigned To: Vincent Massol
Priority: Minor
 Fix For: 1.1


 Right now panels generate this:
 {noformat}
 div class=panel expanded
 {noformat}
 This doesn't allow to style them selectively. For example in the Toucan skin 
 we want to style the Search panels so that it has rounded corners and some 
 border image.
 I'm thus proposing that the #panel* macros generate instead the following
 {noformat}
 div class=panel expanded (panel name here)
 {noformat}
 where (panel name here) is the panel name (the short name not the full 
 name) where accented chars have been transformed to their alpha equivalent 
 and non alpha numeric chars have been stripped.
 Rationale:
 * This provides the necessary hook
 * It's compatible with allowed CSS characters (using the doc name would not 
 be compatible since it can contain accents, dots, hash, etc)
 * The name is the same on all instances since it's computed based on the 
 document's name.
 Of course if the document's name changes it'll be different but then we can 
 consider it's a different panel.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2073) Print and Print Preview only print the first printer page

2008-02-05 Thread Vincent Massol (JIRA)
Print and Print Preview only print the first printer page
-

 Key: XWIKI-2073
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2073
 Project: XWiki Platform
  Issue Type: Bug
  Components: Core
Affects Versions: 1.3 M1
Reporter: Vincent Massol


Tried both with Albatross and Toucan skins on xwiki.org.
For example try printing 
http://dev.xwiki.org/xwiki/bin/view/Design/InterfaceExtensions

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Commented: (XSTOUCAN-1) Create Toucan skin from xwiki.org

2008-02-05 Thread Vincent Massol (JIRA)

[ 
http://jira.xwiki.org/jira/browse/XSTOUCAN-1?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22297
 ] 

Vincent Massol commented on XSTOUCAN-1:
---

Note to self: make sure to modify the selenium tests so that they are also 
executed on the Toucan skin

 Create Toucan skin from xwiki.org
 -

 Key: XSTOUCAN-1
 URL: http://jira.xwiki.org/jira/browse/XSTOUCAN-1
 Project: XWiki Toucan Skin
  Issue Type: Task
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.0

 Attachments: black-edit.png, style.css


 Move the skin on xwiki.org (as of 31/01/2008) to SVN and name it Toucan.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XSALBATROSS-4) Provide CSS hooks to allow to style pages differently depending on sub wikis

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XSALBATROSS-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XSALBATROSS-4:
-

Fix Version/s: 1.1
 Assignee: Vincent Massol

 Provide CSS hooks to allow to style pages differently depending on sub wikis
 

 Key: XSALBATROSS-4
 URL: http://jira.xwiki.org/jira/browse/XSALBATROSS-4
 Project: XWiki Albatross Skin
  Issue Type: Improvement
Affects Versions: 1.0
Reporter: Vincent Massol
 Assigned To: Vincent Massol
Priority: Minor
 Fix For: 1.1




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XTOOLS-23) Integrate the XML Doc update plugin in XWiki Platform Tools

2008-02-05 Thread Jerome Velociter (JIRA)
Integrate the XML Doc update plugin in XWiki Platform Tools
---

 Key: XTOOLS-23
 URL: http://jira.xwiki.org/jira/browse/XTOOLS-23
 Project: XWiki Platform Tools
  Issue Type: New Feature
  Components: Build XML Doc Update Plugin
Reporter: Jerome Velociter


Integrate the XML Doc Update plugin that has been developped for XWiki Watch 
inside XWiki Platform Tools project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Assigned: (XTOOLS-23) Integrate the XML Doc update plugin in XWiki Platform Tools

2008-02-05 Thread Jerome Velociter (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XTOOLS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Velociter reassigned XTOOLS-23:
--

Assignee: Jerome Velociter

 Integrate the XML Doc update plugin in XWiki Platform Tools
 ---

 Key: XTOOLS-23
 URL: http://jira.xwiki.org/jira/browse/XTOOLS-23
 Project: XWiki Platform Tools
  Issue Type: New Feature
  Components: Build XML Doc Update Plugin
Reporter: Jerome Velociter
 Assigned To: Jerome Velociter
 Fix For: 1.8


 Integrate the XML Doc Update plugin that has been developped for XWiki Watch 
 inside XWiki Platform Tools project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XTOOLS-23) Integrate the XML Doc update plugin in XWiki Platform Tools

2008-02-05 Thread Jerome Velociter (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XTOOLS-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Velociter updated XTOOLS-23:
---

Fix Version/s: 1.8

 Integrate the XML Doc update plugin in XWiki Platform Tools
 ---

 Key: XTOOLS-23
 URL: http://jira.xwiki.org/jira/browse/XTOOLS-23
 Project: XWiki Platform Tools
  Issue Type: New Feature
  Components: Build XML Doc Update Plugin
Reporter: Jerome Velociter
 Assigned To: Jerome Velociter
 Fix For: 1.8


 Integrate the XML Doc Update plugin that has been developped for XWiki Watch 
 inside XWiki Platform Tools project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XTOOLS-22) Allow to set a list of includes and excludes when packing/unpacking a XAR

2008-02-05 Thread Jerome Velociter (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XTOOLS-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Velociter closed XTOOLS-22.
--

Fix Version/s: 1.8
   Resolution: Fixed

Commited.

 Allow to set a list of includes and excludes when packing/unpacking a XAR
 -

 Key: XTOOLS-22
 URL: http://jira.xwiki.org/jira/browse/XTOOLS-22
 Project: XWiki Platform Tools
  Issue Type: Improvement
  Components: XAR Plugin
Reporter: Jerome Velociter
 Assigned To: Jerome Velociter
 Fix For: 1.8

 Attachments: XTOOLS-22.patch, XTOOLS-22.patch, XTOOLS-22.patch


 Allow to define includes and exludes when performing xar/unxar, with a 
 configuration on the following scheme
 configuration
   includes
 includeXWiki/*/include
   /includes
   excludes
 exclude**/XWikiPreferences/exclude
   /excludes
 /configuration

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7300 - in xwiki-products/xwiki-watch/trunk: gwt/src/main/java/com/xpn/xwiki/watch/client/data gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog gwt/src/main/java/com/xpn/xw

2008-02-05 Thread SVN
Author: lucaa
Date: 2008-02-05 21:12:00 +0100 (Tue, 05 Feb 2008)
New Revision: 7300

Modified:
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
   
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations
   
xwiki-products/xwiki-watch/trunk/wiki/src/main/resources/WatchCode/Translations.fr
Log:
XWATCH-13: Allow to send a press review by email
Added a checkbox to the PressReviewEmailDialog to also include articles content 
in the email.




Modified: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
 2008-02-05 16:33:27 UTC (rev 7299)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/data/DataManager.java
 2008-02-05 20:12:00 UTC (rev 7300)
@@ -461,12 +461,16 @@
 }
 
 public void sendEmail(FilterStatus filterStatus, String sendEmailPage, 
String mailSubject, 
-  String[] mailTo, String mailContent, AsyncCallback 
cb) {
+  String[] mailTo, String mailContent, boolean 
withArticlesContent, 
+  AsyncCallback cb) {
 Map map = filterStatus.getMap();
 map.put(space, watch.getWatchSpace());
 map.put(address, mailTo);
 map.put(subject, mailSubject);
 map.put(content, mailContent);
+if (withArticlesContent) {
+map.put(withcontent, 1);
+}
 watch.getXWikiServiceInstance().getDocumentContent(sendEmailPage, 
true, map, cb);
 }
 }

Modified: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
  2008-02-05 16:33:27 UTC (rev 7299)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/client/ui/dialog/PressReviewMailDialog.java
  2008-02-05 20:12:00 UTC (rev 7300)
@@ -34,6 +34,7 @@
 protected TextBox mailSubjectTextBox;
 protected TextBox mailToTextBox;
 protected TextArea mailContentTextArea;
+protected CheckBox articlesContentCheckBox;
 
 public PressReviewMailDialog(Watch watch, String dialogName, int 
buttonModes) {
 super(watch, dialogName, buttonModes);
@@ -86,6 +87,13 @@
 mailContentTextArea.setStyleName(getCSSName(mailcontent));
 
mailContentTextArea.setText(app.getTranslation(getDialogTranslationName() + 
.mailcontentdefault));
 paramsPanel.add(mailContentTextArea);
+
+articlesContentCheckBox = new CheckBox();
+
articlesContentCheckBox.setText(app.getTranslation(getDialogTranslationName() 
+   + .articleswithcontent));
+articlesContentCheckBox.setStyleName(getCSSName(withcontent));
+paramsPanel.add(articlesContentCheckBox);
+
 return paramsPanel;
 }
 
@@ -104,9 +112,10 @@
 String[] emailsArray = 
this.mailToTextBox.getText().trim().split(, );
 String mailSubject = this.mailSubjectTextBox.getText();
 String mailContent = this.mailContentTextArea.getText();
+boolean withContent = this.articlesContentCheckBox.isChecked();
 
((Watch)app).getDataManager().sendEmail(((Watch)app).getFilterStatus(),
 Constants.DEFAULT_CODE_SPACE + . + 
Constants.PAGE_EMAIL_PRESSREVIEW, 
-mailSubject, emailsArray, mailContent, new 
XWikiAsyncCallback(app) {
+mailSubject, emailsArray, mailContent, withContent, new 
XWikiAsyncCallback(app) {
 public void onSuccess(Object result) {
 super.onSuccess(result);
 setCurrentResult(result);

Modified: 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
===
--- 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
 2008-02-05 16:33:27 UTC (rev 7299)
+++ 
xwiki-products/xwiki-watch/trunk/gwt/src/main/java/com/xpn/xwiki/watch/public/Watch.css
 2008-02-05 20:12:00 UTC (rev 7300)
@@ -693,6 +693,16 @@
width: 380px;
margin: 0 10px;
 }
+span.watch-email-withcontent {
+   margin: 0 10px;
+   width: 380px;
+}
+span.watch-email-withcontent label {
+   margin: 10px 0 0 10px;
+}
+span.watch-email-withcontent input {
+   margin: 10px 0 0 0;
+}
 

[xwiki-notifications] [Issue] Created: (XWIKI-2074) Database Migration fails when migrating from 1.0 or older directly to 1.2 without going through a 1.1 upgrade

2008-02-05 Thread Vincent Massol (JIRA)
Database Migration fails when migrating from 1.0 or older directly to 1.2 
without going through a 1.1 upgrade
-

 Key: XWIKI-2074
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2074
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.3 M1, 1.2.1
Reporter: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


The error you get is:

{noformat}
2008-02-05 22:25:29,337 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
[http-8081-1] INFO  .AbstractXWikiMigrationManager  - Running migration 
[R4359XWIKI1459] with version [4359] 
2008-02-05 22:25:29,543 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
[http-8081-1] INFO  bernate.R4359XWIKI1459Migrator  - Updating document 
[XWiki.ArticleClass]... 
2008-02-05 22:25:31,136 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
[http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
database [jguard]... 
com.xpn.xwiki.XWikiException: Error number 3005 in 3: Migration failed
Wrapped Exception: Error number 3005 in 3: R4359XWIKI1459 migration failed
Wrapped Exception: Data truncation: Column was set to data type implicit 
default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
at 
com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:179)
at 
com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
at com.xpn.xwiki.XWiki.init(XWiki.java:672)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)


Wrapped Exception:


com.xpn.xwiki.XWikiException: Error number 3005 in 3: R4359XWIKI1459 migration 
failed
Wrapped Exception: Data truncation: Column was set to data type implicit 
default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
at 
com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:120)
at 
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:918)
{noformat}

This because in pre-1.0 DB the XWD_ARCHIVE had a not null constraints with was 
updated to 'null allowed' in 1.1 but since that column has disappeared in the 
1.2 schema Hibernate doesn't update the contraint... (thanks to Sergiu for 
figuring this out).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org

[xwiki-notifications] [Issue] Updated: (XWIKI-2074) Database Migration fails when migrating from 1.0 or older directly to 1.2 without going through a 1.1 upgrade

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2074:
--

Fix Version/s: 1.3 M2
   1.2.2
 Assignee: Vincent Massol

 Database Migration fails when migrating from 1.0 or older directly to 1.2 
 without going through a 1.1 upgrade
 -

 Key: XWIKI-2074
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2074
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 The error you get is:
 {noformat}
 2008-02-05 22:25:29,337 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Running migration 
 [R4359XWIKI1459] with version [4359] 
 2008-02-05 22:25:29,543 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  bernate.R4359XWIKI1459Migrator  - Updating document 
 [XWiki.ArticleClass]... 
 2008-02-05 22:25:31,136 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
 database [jguard]... 
 com.xpn.xwiki.XWikiException: Error number 3005 in 3: Migration failed
 Wrapped Exception: Error number 3005 in 3: R4359XWIKI1459 migration failed
 Wrapped Exception: Data truncation: Column was set to data type implicit 
 default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:179)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
   at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
   at com.xpn.xwiki.XWiki.init(XWiki.java:672)
   at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
   at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
   at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
 Wrapped Exception:
 com.xpn.xwiki.XWikiException: Error number 3005 in 3: R4359XWIKI1459 
 migration failed
 Wrapped Exception: Data truncation: Column was set to data type implicit 
 default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
   at 
 com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:120)
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:918)
 {noformat}
 This because in pre-1.0 DB the XWD_ARCHIVE had a not null constraints with 
 was updated to 'null allowed' in 1.1 but since that column has disappeared in 
 the 1.2 schema Hibernate doesn't update the contraint... (thanks to Sergiu 
 for figuring this out).

-- 
This message is automatically generated by JIRA.
-
If you think it was 

[xwiki-notifications] r7301 - xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate

2008-02-05 Thread SVN
Author: vmassol
Date: 2008-02-05 23:50:54 +0100 (Tue, 05 Feb 2008)
New Revision: 7301

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
Log:
XWIKI-2074: Database Migration fails when migrating from 1.0 or older directly 
to 1.2 without going through a 1.1 upgrade


Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
===
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
2008-02-05 20:12:00 UTC (rev 7300)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
2008-02-05 22:50:54 UTC (rev 7301)
@@ -82,7 +82,13 @@
 Statement stmt = session.connection().createStatement();
 ResultSet rs;
 try {
-rs = stmt.executeQuery(select XWD_ID, XWD_ARCHIVE, 
XWD_FULLNAME from xwikidoc where XWD_ARCHIVE is not null order by XWD_VERSION);
+// We place an empty character in archives for 
documents that have already been migrated so
+// that we can re-execute this migrator and not start 
over.
+// Note that we cannot use NULL since in old databases 
(prior to 1.1) the XWD_ARCHIVE column
+// had a not null constraint and since this column has 
disappeared in 1.2 and after, the
+// hibernate update script will not have modified the 
nullability of it...
+// (see http://jira.xwiki.org/jira/browse/XWIKI-2074).
+rs = stmt.executeQuery(select XWD_ID, XWD_ARCHIVE, 
XWD_FULLNAME from xwikidoc where (XWD_ARCHIVE is not null and XWD_ARCHIVE  ' 
') order by XWD_VERSION);
 } catch (SQLException e) {
 // most likely there is no XWD_ARCHIVE column, so 
migration is not needed
 // is there easier way to find what column is not 
exist?
@@ -91,7 +97,7 @@
 Transaction originalTransaction = 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).getTransaction(context);
 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).setSession(null,
 context);
 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).setTransaction(null,
 context);
-PreparedStatement deleteStatement = 
session.connection().prepareStatement(update xwikidoc set XWD_ARCHIVE=null 
where XWD_ID=?);
+PreparedStatement deleteStatement = 
session.connection().prepareStatement(update xwikidoc set XWD_ARCHIVE=' ' 
where XWD_ID=?);
 
 while (rs.next()) {
 if (LOG.isInfoEnabled()) {

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Created: (XWIKI-2075) Move all databases upgrades and schema updates to XWiki's initialization instead of doing it lazily

2008-02-05 Thread Vincent Massol (JIRA)
Move all databases upgrades and schema updates to XWiki's initialization 
instead of doing it lazily
---

 Key: XWIKI-2075
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2075
 Project: XWiki Platform
  Issue Type: Task
  Components: Storage
Affects Versions: 1.3 M1
Reporter: Vincent Massol
 Fix For: Future


Right now it's done the first time a URL is hit but this is not good since:
* the first user pays the penalty
* the db upgrade script may not have been executed on all sub wikis prior to 
the migrator execution (see XWIKI-2066)
* it forces us to use synchronized blocks thus slowing down performances
* an Admin is not sure the migration has gone correctly


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Updated: (XWIKI-2075) Move all databases upgrades and schema updates to XWiki's initialization instead of doing it lazily

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol updated XWIKI-2075:
--

Fix Version/s: Future

 Move all databases upgrades and schema updates to XWiki's initialization 
 instead of doing it lazily
 ---

 Key: XWIKI-2075
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2075
 Project: XWiki Platform
  Issue Type: Task
  Components: Storage
Affects Versions: 1.3 M1
Reporter: Vincent Massol
 Fix For: Future


 Right now it's done the first time a URL is hit but this is not good since:
 * the first user pays the penalty
 * the db upgrade script may not have been executed on all sub wikis prior to 
 the migrator execution (see XWIKI-2066)
 * it forces us to use synchronized blocks thus slowing down performances
 * an Admin is not sure the migration has gone correctly

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7302 - xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration

2008-02-05 Thread SVN
Author: vmassol
Date: 2008-02-05 23:55:39 +0100 (Tue, 05 Feb 2008)
New Revision: 7302

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
Log:
XWIKI-2066: Migrator fails to upgrade sub wiki databases


Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
===
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
   2008-02-05 22:50:54 UTC (rev 7301)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
   2008-02-05 22:55:39 UTC (rev 7302)
@@ -114,6 +114,13 @@
 context.setDatabase(database);
 context.setOriginalDatabase(database);
 try {
+// Force the schema update since it's not been 
executed yet for sub wikis
+// databases.
+// TODO: In the future intead of doing this, move all 
the database schema
+// update + migrations into XWiki's init (see 
http://jira.xwiki.org/jira/browse/XWIKI-2075).
+
context.getWiki().getHibernateStore().updateSchema(context, false);
+
+// Run the migrations on the current database
 startMigrationsForDatabase(context);
 } catch (XWikiException e) {
 LOG.info(Failed to migrate database [ + database + 
]..., e);

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7303 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate

2008-02-05 Thread SVN
Author: vmassol
Date: 2008-02-06 00:08:39 +0100 (Wed, 06 Feb 2008)
New Revision: 7303

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
Log:
XWIKI-2074: Database Migration fails when migrating from 1.0 or older directly 
to 1.2 without going through a 1.1 upgrade

Merged from 1.2 branch (rev 7301)

Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
===
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
  2008-02-05 22:55:39 UTC (rev 7302)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java
  2008-02-05 23:08:39 UTC (rev 7303)
@@ -82,7 +82,13 @@
 Statement stmt = session.connection().createStatement();
 ResultSet rs;
 try {
-rs = stmt.executeQuery(select XWD_ID, XWD_ARCHIVE, 
XWD_FULLNAME from xwikidoc where XWD_ARCHIVE is not null order by XWD_VERSION);
+// We place an empty character in archives for 
documents that have already been migrated so
+// that we can re-execute this migrator and not start 
over.
+// Note that we cannot use NULL since in old databases 
(prior to 1.1) the XWD_ARCHIVE column
+// had a not null constraint and since this column has 
disappeared in 1.2 and after, the
+// hibernate update script will not have modified the 
nullability of it...
+// (see http://jira.xwiki.org/jira/browse/XWIKI-2074).
+rs = stmt.executeQuery(select XWD_ID, XWD_ARCHIVE, 
XWD_FULLNAME from xwikidoc where (XWD_ARCHIVE is not null and XWD_ARCHIVE  ' 
') order by XWD_VERSION);
 } catch (SQLException e) {
 // most likely there is no XWD_ARCHIVE column, so 
migration is not needed
 // is there easier way to find what column is not 
exist?
@@ -91,7 +97,7 @@
 Transaction originalTransaction = 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).getTransaction(context);
 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).setSession(null,
 context);
 
((XWikiHibernateVersioningStore)context.getWiki().getVersioningStore()).setTransaction(null,
 context);
-PreparedStatement deleteStatement = 
session.connection().prepareStatement(update xwikidoc set XWD_ARCHIVE=null 
where XWD_ID=?);
+PreparedStatement deleteStatement = 
session.connection().prepareStatement(update xwikidoc set XWD_ARCHIVE=' ' 
where XWD_ID=?);
 
 while (rs.next()) {
 if (LOG.isInfoEnabled()) {

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7304 - xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration

2008-02-05 Thread SVN
Author: vmassol
Date: 2008-02-06 00:09:09 +0100 (Wed, 06 Feb 2008)
New Revision: 7304

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
Log:
XWIKI-2066: Migrator fails to upgrade sub wiki databases

Merged from 1.2 branch (rev 7302)

Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
===
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
 2008-02-05 23:08:39 UTC (rev 7303)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/AbstractXWikiMigrationManager.java
 2008-02-05 23:09:09 UTC (rev 7304)
@@ -119,6 +119,13 @@
 context.setDatabase(database);
 context.setOriginalDatabase(database);
 try {
+// Force the schema update since it's not been 
executed yet for sub wikis
+// databases.
+// TODO: In the future intead of doing this, move all 
the database schema
+// update + migrations into XWiki's init (see 
http://jira.xwiki.org/jira/browse/XWIKI-2075).
+
context.getWiki().getHibernateStore().updateSchema(context, false);
+
+// Run the migrations on the current database
 startMigrationsForDatabase(context);
 } catch (XWikiException e) {
 LOG.info(new Formatter().format(Failed to migrate 
database [%s]...,

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XWIKI-2074) Database Migration fails when migrating from 1.0 or older directly to 1.2 without going through a 1.1 upgrade

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol closed XWIKI-2074.
-

Resolution: Fixed

Fixed

 Database Migration fails when migrating from 1.0 or older directly to 1.2 
 without going through a 1.1 upgrade
 -

 Key: XWIKI-2074
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2074
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 The error you get is:
 {noformat}
 2008-02-05 22:25:29,337 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Running migration 
 [R4359XWIKI1459] with version [4359] 
 2008-02-05 22:25:29,543 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  bernate.R4359XWIKI1459Migrator  - Updating document 
 [XWiki.ArticleClass]... 
 2008-02-05 22:25:31,136 [http://localhost:8081/xwiki/bin/view/Main/WebHome] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
 database [jguard]... 
 com.xpn.xwiki.XWikiException: Error number 3005 in 3: Migration failed
 Wrapped Exception: Error number 3005 in 3: R4359XWIKI1459 migration failed
 Wrapped Exception: Data truncation: Column was set to data type implicit 
 default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:179)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
   at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
   at com.xpn.xwiki.XWiki.init(XWiki.java:672)
   at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
   at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
   at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
 Wrapped Exception:
 com.xpn.xwiki.XWikiException: Error number 3005 in 3: R4359XWIKI1459 
 migration failed
 Wrapped Exception: Data truncation: Column was set to data type implicit 
 default; NULL supplied for NOT NULL column 'XWD_ARCHIVE' at row 1
   at 
 com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:120)
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:918)
 {noformat}
 This because in pre-1.0 DB the XWD_ARCHIVE had a not null constraints with 
 was updated to 'null allowed' in 1.1 but since that column has disappeared in 
 the 1.2 schema Hibernate doesn't update the contraint... (thanks to Sergiu 
 for figuring this out).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 

[xwiki-notifications] [Issue] Closed: (XWIKI-2066) Migrator fails to upgrade sub wiki databases

2008-02-05 Thread Vincent Massol (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWIKI-2066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Massol closed XWIKI-2066.
-

Resolution: Fixed

Fixed

 Migrator fails to upgrade sub wiki databases
 

 Key: XWIKI-2066
 URL: http://jira.xwiki.org/jira/browse/XWIKI-2066
 Project: XWiki Platform
  Issue Type: Bug
  Components: Storage
Affects Versions: 1.2.1, 1.3 M1
Reporter: Vincent Massol
 Assigned To: Vincent Massol
 Fix For: 1.3 M2, 1.2.2


 This is the problem that you may encounter:
 {noformat}
 2008-02-05 11:20:21,123 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Starting migration for 
 database [jguard]... 
 2008-02-05 11:20:21,138 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] WARN  util.JDBCExceptionReporter  - SQL Error: 1146, 
 SQLState: 42S02 
 2008-02-05 11:20:21,139 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] ERROR util.JDBCExceptionReporter  - Table 
 'jguard.xwikidbversion' doesn't exist 
 2008-02-05 11:20:21,143 [http://localhost:8081/xwiki/bin/view/Main/] 
 [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate 
 database [jguard]... 
 com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate 
 execute
 Wrapped Exception: could not execute query
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:922)
   at 
 com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:947)
   at 
 com.xpn.xwiki.store.migration.hibernate.XWikiHibernateMigrationManager.getDBVersion(XWikiHibernateMigrationManager.java:61)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:167)
   at 
 com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:117)
   at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
   at com.xpn.xwiki.XWiki.init(XWiki.java:672)
   at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
   at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
   at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
   at 
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
   at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
   at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
   at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
   at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
   at 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
 Wrapped Exception:
 com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 
 'jguard.xwikidbversion' doesn't exist
   at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
   at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
   at 
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
   at 
 com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1448)
   at 
 

[xwiki-notifications] r7305 - in xwiki-products/xwiki-watch/trunk: tools tools/build-xmldoc-update-plugin tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc wiki

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-06 00:34:56 +0100 (Wed, 06 Feb 2008)
New Revision: 7305

Added:
   xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/
Removed:
   xwiki-products/xwiki-watch/trunk/tools/build-doc-plugin/
Modified:
   xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/pom.xml
   
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
   
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AttachMojo.java
   
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/SetPropertyMojo.java
   xwiki-products/xwiki-watch/trunk/tools/pom.xml
   xwiki-products/xwiki-watch/trunk/wiki/pom.xml
Log:
XTOOLS-23 Integrate the XML Doc Update plugin that has been developped for 
XWiki Watch inside XWiki Platform Tools project.

* Prepare the plugin move : renamed parameters, code refactoring, renamed the 
plugin to build-xmldoc-update-plugin



Copied: xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin (from 
rev 7290, xwiki-products/xwiki-watch/trunk/tools/build-doc-plugin)

Modified: 
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/pom.xml
===
--- xwiki-products/xwiki-watch/trunk/tools/build-doc-plugin/pom.xml 
2008-02-04 20:17:18 UTC (rev 7290)
+++ xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/pom.xml   
2008-02-05 23:34:56 UTC (rev 7305)
@@ -29,7 +29,7 @@
 artifactIdxwiki-watch-build-tools/artifactId
 version1.0-SNAPSHOT/version
   /parent
-  artifactIdxwiki-watch-build-doc-plugin/artifactId
+  artifactIdxwiki-build-xmldoc-update-plugin/artifactId
   nameXWiki Products - Watch - Tools - Doc Plugin/name
   packagingmaven-plugin/packaging
   descriptionA Maven plugin to load XWiki documents from XML and perform 
file attachment or setting object properties, before writting the document back 
to XML/description

Modified: 
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
===
--- 
xwiki-products/xwiki-watch/trunk/tools/build-doc-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
  2008-02-04 20:17:18 UTC (rev 7290)
+++ 
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AbstractDocumentMojo.java
2008-02-05 23:34:56 UTC (rev 7305)
@@ -48,6 +48,22 @@
 private MavenProject project;
 
 /**
+ * The document to perform the update on
+ * 
+ * @parameter 
expression=${basedir}/src/main/resources/XWiki/XWikiPreferences
+ * @required
+ */
+protected File sourceDocument;
+
+/**
+ * The target directory to write the document back to
+ * 
+ * @parameter expression=${project.build.outputDirectory}
+ * @required
+ */
+protected File outputDirectory;
+
+/**
  * Loads a XWikiDocument from a XML file
  * 
  * @param file the xml file to load
@@ -92,22 +108,20 @@
 }
 
 /**
- * Obtain the output file for a Wiki document
+ * Return the space directory as a File for a given document in a given
+ * directory, creating the directories on the fly if the do not exists
  * 
- * @param document the document to get the output file of
- * @return the File for that document in the build output directory
+ * @param document the document to get space for
+ * @param directory the directory in which the space will be written
+ * @return the space as a File
  * @throws MojoExecutionException
  */
-protected File getOutputFileForDocument(File document) throws 
MojoExecutionException
+protected File getSpaceDirectory(File directory, File document) throws 
MojoExecutionException
 {
-File targetDir = new 
File(this.project.getBuild().getOutputDirectory());
-if (!targetDir.exists()) {
-targetDir.mkdirs();
-}
-File spaceDir = new File(targetDir, 
document.getParentFile().getName());
+File spaceDir = new File(directory, 
document.getParentFile().getName());
 if (!spaceDir.exists()) {
 spaceDir.mkdirs();
 }
-return new File(targetDir, spaceDir.getName() + / + 
document.getName());
+return spaceDir;
 }
 }

Modified: 
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/src/main/java/com/xpn/xwiki/tool/doc/AttachMojo.java
===
--- 
xwiki-products/xwiki-watch/trunk/tools/build-doc-plugin/src/main/java/com/xpn/xwiki/tool/doc/AttachMojo.java
2008-02-04 20:17:18 UTC (rev 7290)
+++ 

[xwiki-notifications] r7306 - in xwiki-platform/xwiki-tools/trunk/build-tools: . build-xmldoc-update-plugin

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-06 00:53:41 +0100 (Wed, 06 Feb 2008)
New Revision: 7306

Added:
   xwiki-platform/xwiki-tools/trunk/build-tools/build-xmldoc-update-plugin/
Modified:
   
xwiki-platform/xwiki-tools/trunk/build-tools/build-xmldoc-update-plugin/pom.xml
   xwiki-platform/xwiki-tools/trunk/build-tools/pom.xml
Log:
XTOOLS-23 Integrate the XML Doc update plugin in XWiki Platform Tools

* Moved the plugin in platform-tools/, added to build-tools build


Copied: xwiki-platform/xwiki-tools/trunk/build-tools/build-xmldoc-update-plugin 
(from rev 7305, 
xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin)

Modified: 
xwiki-platform/xwiki-tools/trunk/build-tools/build-xmldoc-update-plugin/pom.xml
===
--- xwiki-products/xwiki-watch/trunk/tools/build-xmldoc-update-plugin/pom.xml   
2008-02-05 23:34:56 UTC (rev 7305)
+++ 
xwiki-platform/xwiki-tools/trunk/build-tools/build-xmldoc-update-plugin/pom.xml 
2008-02-05 23:53:41 UTC (rev 7306)
@@ -25,12 +25,12 @@
 project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   parent
-groupIdcom.xpn.xwiki.products/groupId
-artifactIdxwiki-watch-build-tools/artifactId
-version1.0-SNAPSHOT/version
+groupIdcom.xpn.xwiki.platform/groupId
+artifactIdxwiki-build-tools/artifactId
+version1.8-SNAPSHOT/version
   /parent
   artifactIdxwiki-build-xmldoc-update-plugin/artifactId
-  nameXWiki Products - Watch - Tools - Doc Plugin/name
+  nameXWiki Platform - Tools - Build - XML Doc Update Plugin/name
   packagingmaven-plugin/packaging
   descriptionA Maven plugin to load XWiki documents from XML and perform 
file attachment or setting object properties, before writting the document back 
to XML/description
   dependencies

Modified: xwiki-platform/xwiki-tools/trunk/build-tools/pom.xml
===
--- xwiki-platform/xwiki-tools/trunk/build-tools/pom.xml2008-02-05 
23:34:56 UTC (rev 7305)
+++ xwiki-platform/xwiki-tools/trunk/build-tools/pom.xml2008-02-05 
23:53:41 UTC (rev 7306)
@@ -38,6 +38,7 @@
 modulebuild-verifications/module
 modulebuild-xar-plugin/module
 modulebuild-xar-handlers/module
+modulebuild-xmldoc-update-plugin/module
 moduleshared-test/module
   /modules
 /project

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7307 - xwiki-products/xwiki-watch/trunk/wiki

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-06 01:00:24 +0100 (Wed, 06 Feb 2008)
New Revision: 7307

Modified:
   xwiki-products/xwiki-watch/trunk/wiki/pom.xml
Log:
Changed the articact name/id of the moved xmldoc-update plugin



Modified: xwiki-products/xwiki-watch/trunk/wiki/pom.xml
===
--- xwiki-products/xwiki-watch/trunk/wiki/pom.xml   2008-02-05 23:53:41 UTC 
(rev 7306)
+++ xwiki-products/xwiki-watch/trunk/wiki/pom.xml   2008-02-06 00:00:24 UTC 
(rev 7307)
@@ -116,7 +116,7 @@
to WatchCode.GWT document.
   --
   plugin
-groupIdcom.xpn.xwiki.products/groupId
+groupIdcom.xpn.xwiki.platform/groupId
 artifactIdxwiki-build-xmldoc-update-plugin/artifactId
 executions
   execution

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7308 - xwiki-products/xwiki-watch/trunk

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-06 01:03:16 +0100 (Wed, 06 Feb 2008)
New Revision: 7308

Removed:
   xwiki-products/xwiki-watch/trunk/tools/
Log:
XTOOLS-23 Remove watch tools module as its plugin is now integrated in 
platform-tools/



___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] r7309 - xwiki-products/xwiki-watch/trunk

2008-02-05 Thread SVN
Author: jvelociter
Date: 2008-02-06 01:23:46 +0100 (Wed, 06 Feb 2008)
New Revision: 7309

Modified:
   xwiki-products/xwiki-watch/trunk/pom.xml
Log:
Removed the build module in parent pom too that I had forgotten



Modified: xwiki-products/xwiki-watch/trunk/pom.xml
===
--- xwiki-products/xwiki-watch/trunk/pom.xml2008-02-06 00:03:16 UTC (rev 
7308)
+++ xwiki-products/xwiki-watch/trunk/pom.xml2008-02-06 00:23:46 UTC (rev 
7309)
@@ -50,7 +50,6 @@
   /properties
   modules
 modulegwt/module
-   moduletools/module
 modulewiki/module
 moduledatabase/module
 moduledistribution/module

___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XWATCH-93) inject at runtime WatchCode.Translations in the I18n doc bundle of XWiki.XWikiPreferences

2008-02-05 Thread Jerome Velociter (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWATCH-93?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Velociter closed XWATCH-93.
--

Resolution: Fixed

Fixed, using the new xmldoc-update maven plugin

 inject at runtime WatchCode.Translations in the I18n doc bundle of 
 XWiki.XWikiPreferences
 -

 Key: XWATCH-93
 URL: http://jira.xwiki.org/jira/browse/XWATCH-93
 Project: XWiki Watch
  Issue Type: Improvement
  Components: Build, Test  Packaging
Affects Versions: 1.0M2
Reporter: Jerome Velociter
 Assigned To: Jerome Velociter
 Fix For: 1.0M3


 The wiki should inject the translation page name value in its preference 
 object.
 We could use the application manager to handle this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications


[xwiki-notifications] [Issue] Closed: (XWATCH-99) Embed XWatch GWT code in a zip in the generated wiki xar

2008-02-05 Thread Jerome Velociter (JIRA)

 [ 
http://jira.xwiki.org/jira/browse/XWATCH-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jerome Velociter closed XWATCH-99.
--

Resolution: Fixed

 Embed XWatch GWT code in a zip in the generated wiki xar
 

 Key: XWATCH-99
 URL: http://jira.xwiki.org/jira/browse/XWATCH-99
 Project: XWiki Watch
  Issue Type: Improvement
  Components: Build, Test  Packaging
Affects Versions: 1.0M2
Reporter: Jerome Velociter
 Assigned To: Jerome Velociter
 Fix For: 1.0M3


 Now the generated GWT code (compiled JS + resources) is copied in the webapp 
 but isn't embed in the watch xar archive. We could do that with writting 
 maven plugins, to zip the generated code, and attach it dynamically to 
 WatchCode.GWT.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


___
notifications mailing list
notifications@xwiki.org
http://lists.xwiki.org/mailman/listinfo/notifications