Re: [xwiki-users] [myxwiki] new wiki request

2015-01-06 Thread Thomas Mortagne
You can access your new wiki on http://zucchini.myxwiki.org.

Enjoy !

On Mon, Jan 5, 2015 at 11:11 PM, Steen Klingenberg
st...@familienfriluft.dk wrote:
 description: Wiki for documenting a private software solution named
 Zucchini



 owner name:  Steen Klingenberg



 wiki name:   Zucchini



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



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Antoine Berthelin
Hello,

I have a question about create a new wiki feature on xwiki, regarding the
code and after test, this feature create a schema.
In Oracle, to create a schema, you have to create user.
The problem is : Oracle administrator don't allow xwiki user to create
user/schema in oracle database ...
File :
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
308

Hope it's a lack of understanding on my side ?
What do you think, do you have a workaround ?

Thanks for your help
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Jeremie BOUSQUET
Hello,

This is normal, see here [1]

New wiki creates a new schema.

BR,
Jeremie

[1] - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization

2015-01-06 11:49 GMT+01:00 Antoine Berthelin antoine.berthe...@gmail.com:

 Hello,

 I have a question about create a new wiki feature on xwiki, regarding the
 code and after test, this feature create a schema.
 In Oracle, to create a schema, you have to create user.
 The problem is : Oracle administrator don't allow xwiki user to create
 user/schema in oracle database ...
 File :

 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
 308

 Hope it's a lack of understanding on my side ?
 What do you think, do you have a workaround ?

 Thanks for your help
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Antoine Berthelin
Hello,

Thanks for your response.
Yes, I understand xwiki has to use a new schema for sub wiki for
scalability raison etc ...

But, in production environnement in a real (big) company, Oracle DBA
disallow autorisation on create user / schema operation for xwiki user
(only DBA administrator can do this operation)

Oracle DBA has to create user/schema by themself (database configuration
with corporate option backup rule etc ...)

A workaround could be :
- Target subwiki user/schema is provisioning by Oracle administrator (and
not xwiki application)
- Xwiki continue to update shema

So, if I comment the XWikiHibernateStore.createWiki function and previously
provisioning a schema with target subxwiki name, it should work, isn't it ?

Do you know if this option is available using file configuration ?

Best,

Antoine

2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com:

 Hello,

 This is normal, see here [1]

 New wiki creates a new schema.

 BR,
 Jeremie

 [1] - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization

 2015-01-06 11:49 GMT+01:00 Antoine Berthelin antoine.berthe...@gmail.com
 :

  Hello,
 
  I have a question about create a new wiki feature on xwiki, regarding
 the
  code and after test, this feature create a schema.
  In Oracle, to create a schema, you have to create user.
  The problem is : Oracle administrator don't allow xwiki user to create
  user/schema in oracle database ...
  File :
 
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
  308
 
  Hope it's a lack of understanding on my side ?
  What do you think, do you have a workaround ?
 
  Thanks for your help
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Thomas Mortagne
Old wiki manager UI used to propose you to force wiki creation when
the DB/schema already existed but this feature seems to not be
available anymore in the new UI. But as far as I can see this is
supported by the wiki manager script API so one solution might be to
either customize WikiManager.CreateWiki to allow it (it's mostly about
passing false as last createWiki() method parameter and remove
whatever javascript check forbid creating a wiki on existing database)
or bypass the standard wiki creation UI and use a custom script which
uses wiki script service (see
http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-wiki-script/6.3/xwiki-platform-wiki-script-6.3-javadoc.jar/!/org/xwiki/wiki/script/WikiManagerScriptService.html).

On Tue, Jan 6, 2015 at 2:14 PM, Antoine Berthelin
antoine.berthe...@gmail.com wrote:
 Hello,

 Thanks for your response.
 Yes, I understand xwiki has to use a new schema for sub wiki for
 scalability raison etc ...

 But, in production environnement in a real (big) company, Oracle DBA
 disallow autorisation on create user / schema operation for xwiki user
 (only DBA administrator can do this operation)

 Oracle DBA has to create user/schema by themself (database configuration
 with corporate option backup rule etc ...)

 A workaround could be :
 - Target subwiki user/schema is provisioning by Oracle administrator (and
 not xwiki application)
 - Xwiki continue to update shema

 So, if I comment the XWikiHibernateStore.createWiki function and previously
 provisioning a schema with target subxwiki name, it should work, isn't it ?

 Do you know if this option is available using file configuration ?

 Best,

 Antoine

 2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com:

 Hello,

 This is normal, see here [1]

 New wiki creates a new schema.

 BR,
 Jeremie

 [1] - http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization

 2015-01-06 11:49 GMT+01:00 Antoine Berthelin antoine.berthe...@gmail.com
 :

  Hello,
 
  I have a question about create a new wiki feature on xwiki, regarding
 the
  code and after test, this feature create a schema.
  In Oracle, to create a schema, you have to create user.
  The problem is : Oracle administrator don't allow xwiki user to create
  user/schema in oracle database ...
  File :
 
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
  308
 
  Hope it's a lack of understanding on my side ?
  What do you think, do you have a workaround ?
 
  Thanks for your help
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Show hidden spaces

2015-01-06 Thread Pascal BASTIEN
Hello,
(First let me start off by wishing everyone a very Happy New Year.)
You can use somethink like this to find hidden space (even if the user don't 
display hidden doc)

#set ($items = $xwiki.search(select doc.space from XWikiDocument as doc where 
doc.name='WebHome' and doc.hidden = '1'))
#foreach ($item in $items)
* $item
#end

(to avoid multi language problem who's generate some dupplicate entries  
perhaps you can add doc.defaultLanguage='en' parameter in the query?)



Pascal B
  De : Matthias Wegner mic.mat.weg...@web.de
 À : users@xwiki.org 
 Envoyé le : Dimanche 4 janvier 2015 13h36
 Objet : [xwiki-users] Show hidden spaces
   
Hi All,

first of all. A happy new year to everybody.
 
I hide some spaces with the extension
http://extensions.xwiki.org/xwiki/bin/view/Extension/Hide+a+space because my
user should not see my macro-space or some other admin-stuff. But i want to
display for myself a simple page where i can list all hidden spaces and
documents. The displaying of documents is easy with
http://extensions.xwiki.org/xwiki/bin/view/Extension/Display+hidden+pages+from+a+specific+space.

But how can i find the hidden spaces? $xwiki.spaces only gives me the
not-hidden ones.

Regards,
Matthias



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Show-hidden-spaces-tp7593554.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] [AppWithinMinutes] Add Entry by Link from another Page

2015-01-06 Thread Marius Dumitru Florea
You can try something like this:

/xwiki/bin/save/MyApp/SomeNewEntry?template=MyAppCode.MyAppTemplateparent=WebHomeMyAppCode.MyAppClass_0_color=redform_token=EZAMO0woQCt9mQGvMXPawQ

The alternative is to use REST, see
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectresources
.

Hope this helps,
Marius

On Mon, Dec 29, 2014 at 8:18 PM, Matthias Wegner mic.mat.weg...@web.de wrote:
 Hi,

 i need to make the addition of 168 objects to a AppWithinMinutes. I can do
 it programmatically, because the user should do it in a simple way. Is there
 an url which i can use or did someone a workaround for it?

 When not the only way i can think of is to create a new document with a
 embedded object manually by code.

 Regards,
 Matthias



 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/AppWithinMinutes-Add-Entry-by-Link-from-another-Page-tp7593548.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Antoine Berthelin
Hello Thomas,

Yes, I set failOnExist parameter to false, xwiki don't check it.
However, just after, he try to create user and schema.
= Throw JDBC exception

Antoine


2015-01-06 17:58 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:

 On Tue, Jan 6, 2015 at 5:03 PM, Antoine Berthelin
 antoine.berthe...@gmail.com wrote:
  Thanks Thomas,
 
  Good idea to use WikiManagerScriptService, I test it, but this service
  use the same method as UI with database creation, same method == same
  result :)

 As I explained in my first mail you have a parameter which indicate if
 createWiki should fail if the database already exist and the standard
 UI always set it to true. Did you tried with false (that's how is was
 working in old wikimanager UI) ?

 
  So, I am writing a patch in Xwiki, I will improve my code and propose a
  push request in  order to add an option on database creation (by xwiki or
  not).
 
  Thanks for your help.
 
  Antoine
 
 
 
 
 
 
  2015-01-06 14:59 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:
 
  Old wiki manager UI used to propose you to force wiki creation when
  the DB/schema already existed but this feature seems to not be
  available anymore in the new UI. But as far as I can see this is
  supported by the wiki manager script API so one solution might be to
  either customize WikiManager.CreateWiki to allow it (it's mostly about
  passing false as last createWiki() method parameter and remove
  whatever javascript check forbid creating a wiki on existing database)
  or bypass the standard wiki creation UI and use a custom script which
  uses wiki script service (see
 
 
 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-wiki-script/6.3/xwiki-platform-wiki-script-6.3-javadoc.jar/!/org/xwiki/wiki/script/WikiManagerScriptService.html
  ).
 
  On Tue, Jan 6, 2015 at 2:14 PM, Antoine Berthelin
  antoine.berthe...@gmail.com wrote:
   Hello,
  
   Thanks for your response.
   Yes, I understand xwiki has to use a new schema for sub wiki for
   scalability raison etc ...
  
   But, in production environnement in a real (big) company, Oracle DBA
   disallow autorisation on create user / schema operation for xwiki user
   (only DBA administrator can do this operation)
  
   Oracle DBA has to create user/schema by themself (database
 configuration
   with corporate option backup rule etc ...)
  
   A workaround could be :
   - Target subwiki user/schema is provisioning by Oracle administrator
 (and
   not xwiki application)
   - Xwiki continue to update shema
  
   So, if I comment the XWikiHibernateStore.createWiki function and
  previously
   provisioning a schema with target subxwiki name, it should work, isn't
  it ?
  
   Do you know if this option is available using file configuration ?
  
   Best,
  
   Antoine
  
   2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET 
 jeremie.bousq...@gmail.com
  :
  
   Hello,
  
   This is normal, see here [1]
  
   New wiki creates a new schema.
  
   BR,
   Jeremie
  
   [1] -
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization
  
   2015-01-06 11:49 GMT+01:00 Antoine Berthelin 
  antoine.berthe...@gmail.com
   :
  
Hello,
   
I have a question about create a new wiki feature on xwiki,
  regarding
   the
code and after test, this feature create a schema.
In Oracle, to create a schema, you have to create user.
The problem is : Oracle administrator don't allow xwiki user to
  create
user/schema in oracle database ...
File :
   
   
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
308
   
Hope it's a lack of understanding on my side ?
What do you think, do you have a workaround ?
   
Thanks for your help
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
   
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
 
 
 
  --
  Thomas Mortagne
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Antoine Berthelin
Thanks Thomas,

Good idea to use WikiManagerScriptService, I test it, but this service
use the same method as UI with database creation, same method == same
result :)

So, I am writing a patch in Xwiki, I will improve my code and propose a
push request in  order to add an option on database creation (by xwiki or
not).

Thanks for your help.

Antoine






2015-01-06 14:59 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:

 Old wiki manager UI used to propose you to force wiki creation when
 the DB/schema already existed but this feature seems to not be
 available anymore in the new UI. But as far as I can see this is
 supported by the wiki manager script API so one solution might be to
 either customize WikiManager.CreateWiki to allow it (it's mostly about
 passing false as last createWiki() method parameter and remove
 whatever javascript check forbid creating a wiki on existing database)
 or bypass the standard wiki creation UI and use a custom script which
 uses wiki script service (see

 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-wiki-script/6.3/xwiki-platform-wiki-script-6.3-javadoc.jar/!/org/xwiki/wiki/script/WikiManagerScriptService.html
 ).

 On Tue, Jan 6, 2015 at 2:14 PM, Antoine Berthelin
 antoine.berthe...@gmail.com wrote:
  Hello,
 
  Thanks for your response.
  Yes, I understand xwiki has to use a new schema for sub wiki for
  scalability raison etc ...
 
  But, in production environnement in a real (big) company, Oracle DBA
  disallow autorisation on create user / schema operation for xwiki user
  (only DBA administrator can do this operation)
 
  Oracle DBA has to create user/schema by themself (database configuration
  with corporate option backup rule etc ...)
 
  A workaround could be :
  - Target subwiki user/schema is provisioning by Oracle administrator (and
  not xwiki application)
  - Xwiki continue to update shema
 
  So, if I comment the XWikiHibernateStore.createWiki function and
 previously
  provisioning a schema with target subxwiki name, it should work, isn't
 it ?
 
  Do you know if this option is available using file configuration ?
 
  Best,
 
  Antoine
 
  2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 :
 
  Hello,
 
  This is normal, see here [1]
 
  New wiki creates a new schema.
 
  BR,
  Jeremie
 
  [1] -
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization
 
  2015-01-06 11:49 GMT+01:00 Antoine Berthelin 
 antoine.berthe...@gmail.com
  :
 
   Hello,
  
   I have a question about create a new wiki feature on xwiki,
 regarding
  the
   code and after test, this feature create a schema.
   In Oracle, to create a schema, you have to create user.
   The problem is : Oracle administrator don't allow xwiki user to
 create
   user/schema in oracle database ...
   File :
  
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
   308
  
   Hope it's a lack of understanding on my side ?
   What do you think, do you have a workaround ?
  
   Thanks for your help
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Thomas Mortagne
On Tue, Jan 6, 2015 at 5:03 PM, Antoine Berthelin
antoine.berthe...@gmail.com wrote:
 Thanks Thomas,

 Good idea to use WikiManagerScriptService, I test it, but this service
 use the same method as UI with database creation, same method == same
 result :)

As I explained in my first mail you have a parameter which indicate if
createWiki should fail if the database already exist and the standard
UI always set it to true. Did you tried with false (that's how is was
working in old wikimanager UI) ?


 So, I am writing a patch in Xwiki, I will improve my code and propose a
 push request in  order to add an option on database creation (by xwiki or
 not).

 Thanks for your help.

 Antoine






 2015-01-06 14:59 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:

 Old wiki manager UI used to propose you to force wiki creation when
 the DB/schema already existed but this feature seems to not be
 available anymore in the new UI. But as far as I can see this is
 supported by the wiki manager script API so one solution might be to
 either customize WikiManager.CreateWiki to allow it (it's mostly about
 passing false as last createWiki() method parameter and remove
 whatever javascript check forbid creating a wiki on existing database)
 or bypass the standard wiki creation UI and use a custom script which
 uses wiki script service (see

 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-wiki-script/6.3/xwiki-platform-wiki-script-6.3-javadoc.jar/!/org/xwiki/wiki/script/WikiManagerScriptService.html
 ).

 On Tue, Jan 6, 2015 at 2:14 PM, Antoine Berthelin
 antoine.berthe...@gmail.com wrote:
  Hello,
 
  Thanks for your response.
  Yes, I understand xwiki has to use a new schema for sub wiki for
  scalability raison etc ...
 
  But, in production environnement in a real (big) company, Oracle DBA
  disallow autorisation on create user / schema operation for xwiki user
  (only DBA administrator can do this operation)
 
  Oracle DBA has to create user/schema by themself (database configuration
  with corporate option backup rule etc ...)
 
  A workaround could be :
  - Target subwiki user/schema is provisioning by Oracle administrator (and
  not xwiki application)
  - Xwiki continue to update shema
 
  So, if I comment the XWikiHibernateStore.createWiki function and
 previously
  provisioning a schema with target subxwiki name, it should work, isn't
 it ?
 
  Do you know if this option is available using file configuration ?
 
  Best,
 
  Antoine
 
  2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET jeremie.bousq...@gmail.com
 :
 
  Hello,
 
  This is normal, see here [1]
 
  New wiki creates a new schema.
 
  BR,
  Jeremie
 
  [1] -
 http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization
 
  2015-01-06 11:49 GMT+01:00 Antoine Berthelin 
 antoine.berthe...@gmail.com
  :
 
   Hello,
  
   I have a question about create a new wiki feature on xwiki,
 regarding
  the
   code and after test, this feature create a schema.
   In Oracle, to create a schema, you have to create user.
   The problem is : Oracle administrator don't allow xwiki user to
 create
   user/schema in oracle database ...
   File :
  
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
   308
  
   Hope it's a lack of understanding on my side ?
   What do you think, do you have a workaround ?
  
   Thanks for your help
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

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



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Create a new wiki on Oracle database autorisation

2015-01-06 Thread Thomas Mortagne
On Tue, Jan 6, 2015 at 6:11 PM, Antoine Berthelin
antoine.berthe...@gmail.com wrote:
 Hello Thomas,

 Yes, I set failOnExist parameter to false, xwiki don't check it.
 However, just after, he try to create user and schema.

This sounds like a bug to me, you should probably create a bug issue
on http://jira.xwiki.org. This error make this parameter totally
useless..

 = Throw JDBC exception

 Antoine


 2015-01-06 17:58 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:

 On Tue, Jan 6, 2015 at 5:03 PM, Antoine Berthelin
 antoine.berthe...@gmail.com wrote:
  Thanks Thomas,
 
  Good idea to use WikiManagerScriptService, I test it, but this service
  use the same method as UI with database creation, same method == same
  result :)

 As I explained in my first mail you have a parameter which indicate if
 createWiki should fail if the database already exist and the standard
 UI always set it to true. Did you tried with false (that's how is was
 working in old wikimanager UI) ?

 
  So, I am writing a patch in Xwiki, I will improve my code and propose a
  push request in  order to add an option on database creation (by xwiki or
  not).
 
  Thanks for your help.
 
  Antoine
 
 
 
 
 
 
  2015-01-06 14:59 GMT+01:00 Thomas Mortagne thomas.morta...@xwiki.com:
 
  Old wiki manager UI used to propose you to force wiki creation when
  the DB/schema already existed but this feature seems to not be
  available anymore in the new UI. But as far as I can see this is
  supported by the wiki manager script API so one solution might be to
  either customize WikiManager.CreateWiki to allow it (it's mostly about
  passing false as last createWiki() method parameter and remove
  whatever javascript check forbid creating a wiki on existing database)
  or bypass the standard wiki creation UI and use a custom script which
  uses wiki script service (see
 
 
 http://nexus.xwiki.org/nexus/service/local/repositories/releases/archive/org/xwiki/platform/xwiki-platform-wiki-script/6.3/xwiki-platform-wiki-script-6.3-javadoc.jar/!/org/xwiki/wiki/script/WikiManagerScriptService.html
  ).
 
  On Tue, Jan 6, 2015 at 2:14 PM, Antoine Berthelin
  antoine.berthe...@gmail.com wrote:
   Hello,
  
   Thanks for your response.
   Yes, I understand xwiki has to use a new schema for sub wiki for
   scalability raison etc ...
  
   But, in production environnement in a real (big) company, Oracle DBA
   disallow autorisation on create user / schema operation for xwiki user
   (only DBA administrator can do this operation)
  
   Oracle DBA has to create user/schema by themself (database
 configuration
   with corporate option backup rule etc ...)
  
   A workaround could be :
   - Target subwiki user/schema is provisioning by Oracle administrator
 (and
   not xwiki application)
   - Xwiki continue to update shema
  
   So, if I comment the XWikiHibernateStore.createWiki function and
  previously
   provisioning a schema with target subxwiki name, it should work, isn't
  it ?
  
   Do you know if this option is available using file configuration ?
  
   Best,
  
   Antoine
  
   2015-01-06 12:02 GMT+01:00 Jeremie BOUSQUET 
 jeremie.bousq...@gmail.com
  :
  
   Hello,
  
   This is normal, see here [1]
  
   New wiki creates a new schema.
  
   BR,
   Jeremie
  
   [1] -
  http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Virtualization
  
   2015-01-06 11:49 GMT+01:00 Antoine Berthelin 
  antoine.berthe...@gmail.com
   :
  
Hello,
   
I have a question about create a new wiki feature on xwiki,
  regarding
   the
code and after test, this feature create a schema.
In Oracle, to create a schema, you have to create user.
The problem is : Oracle administrator don't allow xwiki user to
  create
user/schema in oracle database ...
File :
   
   
  
 
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/XWikiHibernateStore.javaline
308
   
Hope it's a lack of understanding on my side ?
What do you think, do you have a workaround ?
   
Thanks for your help
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
   
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
  
   ___
   users mailing list
   users@xwiki.org
   http://lists.xwiki.org/mailman/listinfo/users
 
 
 
  --
  Thomas Mortagne
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users
 
  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users