Re: [xwiki-users] Delete page - Error number 0 in 3: Exception while hibernate execute

2015-10-09 Thread Thomas Mortagne
If you put the same WAR version you won't get the Distribution Wizard
anyway (otherwise you would get it every time you restart).

On Fri, Oct 9, 2015 at 10:31 AM, Hamster  wrote:
> So with the same war file and the same database...do we still need to run the
> upgrade process?
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/Delete-page-Error-number-0-in-3-Exception-while-hibernate-execute-tp7596386p7596402.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



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


Re: [xwiki-users] Delete page - Error number 0 in 3: Exception while hibernate execute

2015-10-09 Thread Hamster
So with the same war file and the same database...do we still need to run the
upgrade process?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Delete-page-Error-number-0-in-3-Exception-while-hibernate-execute-tp7596386p7596402.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


Re: [xwiki-users] Modifying the Search results page?

2015-10-09 Thread vinc...@massol.net
Hi,

On 9 Oct 2015 at 04:04:22, Debajit Adhikary 
(debaj...@gmail.com(mailto:debaj...@gmail.com)) wrote:

> I am trying to connect my XWiki to a third-party search engine.
>  
> How can I modify the search results page?
>  
> I am trying to modify this page:
> http://localhost:8443/bin/view/Main/Search
>  
> What file corresponds to this?

The page located in Main/Search.

See http://www.xwiki.org/xwiki/bin/view/FAQ/How+can+I+navigate+to+a+given+page

> In general, how can I find out what file
> serves a URL path? (I looked in struts-config.xml, but I did not find any
> "search" references there.

See  http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format

Thanks
-Vincent

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


Re: [xwiki-users] Converting MediaWiki to Xwiki

2015-10-09 Thread Paul Libbrecht
Tasif,

what kind of automation level do you expect?
Do you feel like you'll have to adapt code anyways since there's some
special markup in your wiki?

I'm currently working on an import of an (old) confluence and
handcrafting will get me there.
The mediawiki and confluence situations are pretty similar: the syntaxes
are there but that's not it all for the conversion (e.g. list the pages,
get authorizations, access the source).

Part of the crafting included a tool to automatically upload attachments
(e.g. as images from a web-page or as local files), another is to search
replace a few things in the source because of our custom macro. I'll be
doing the final (about 80 pages) by manual invocation of each page at
the end.

Surely it's not a push-button system to get you there, but is probably
better mastered.
If you're ready to try to adapt the code (in Groovy, mostly done as if
it was Java), I'm happy to share.

Paul

> Tausif Hasan 
> 9 octobre 2015 22:27
> Hi all,
>
> I was wondering if anyone knew of any methods to convert mediawiki
> pages to xwiki pages. Preferably with the assistance of a tool as I am
> looking to convert about 200 or so pages. Thanks to anyone who knows a
> solution to this!

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


Re: [xwiki-users] Modifying the Search results page?

2015-10-09 Thread Debajit Adhikary
Thanks.

On Fri, Oct 9, 2015 at 4:21 AM, Marius Dumitru Florea <
mariusdumitru.flo...@xwiki.com> wrote:

> On Fri, Oct 9, 2015 at 5:04 AM, Debajit Adhikary 
> wrote:
>
> > I am trying to connect my XWiki to a third-party search engine.
> >
> > How can I modify the search results page?
> >
> > I am trying to modify this page:
> > http://localhost:8443/bin/view/Main/Search
> >
> >
>
> > What file corresponds to this? In general, how can I find out what file
> > serves a URL path? (I looked in struts-config.xml, but I did not find any
> > "search" references there.
> >
>
> Main.Search is a wiki page. All wiki pages are stored in the database, not
> (directly) on the file system. You can edit a wiki page using the edit menu
> (pencil icon), as long as you have edit right.
>
> Hope this helps,
> Marius
>
>
> > ___
> > 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


[xwiki-users] Converting MediaWiki to Xwiki

2015-10-09 Thread Tausif Hasan
Hi all,

I was wondering if anyone knew of any methods to convert mediawiki pages to 
xwiki pages. Preferably with the assistance of a tool as I am looking to 
convert about 200 or so pages. Thanks to anyone who knows a solution to this!

Regards,
Tausif

Tausif Hasan | Intern
New York Genome Center
101 Avenue of the Americas
New York, NY 10013
tha...@nygenome.org
This electronic message is intended for the use of the named recipient only, 
and may contain information that is confidential, privileged or protected from 
disclosure under applicable law. If you are not the intended recipient, or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any reading, disclosure, dissemination, 
distribution, copying or use of the contents of this message including any of 
its attachments is strictly prohibited. If you have received this message in 
error or are not the named recipient, please notify us immediately by 
contacting the sender at the electronic mail address noted above, and destroy 
all copies of this message. Please note, the recipient should check this email 
and any attachments for the presence of viruses. The organization accepts no 
liability for any damage caused by any virus transmitted by this email.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Users accounts

2015-10-09 Thread seb59
Hi,

Yes you can do this when using LDAP => you change user rights in the LDAP
;-)
I tested It just now.









--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Users-accounts-tp7596412p7596413.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


Re: [xwiki-users] Delete page - Error number 0 in 3: Exception while hibernate execute

2015-10-09 Thread Marius Dumitru Florea
On Fri, Oct 9, 2015 at 11:31 AM, Hamster  wrote:

> So with the same war file and the same database...do we still need to run
> the
> upgrade process?
>

Besides the war and the database there is also the permanent directory
which holds important things like:
* the extension index (which extensions have been installed)
* the Solr search index
* various job statuses, including the status of the Distribution Wizard
* caches
* etc.

The Distribution Wizard appears because the extension index is empty. You
have the wiki pages but the XWiki UI is not properly marked as installed so
the Distribution Wizard offers to install (actually repair) it.

Hope this helps,
Marius


>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Delete-page-Error-number-0-in-3-Exception-while-hibernate-execute-tp7596386p7596402.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] Modifying the Search results page?

2015-10-09 Thread Marius Dumitru Florea
On Fri, Oct 9, 2015 at 5:04 AM, Debajit Adhikary  wrote:

> I am trying to connect my XWiki to a third-party search engine.
>
> How can I modify the search results page?
>
> I am trying to modify this page:
> http://localhost:8443/bin/view/Main/Search
>
>

> What file corresponds to this? In general, how can I find out what file
> serves a URL path? (I looked in struts-config.xml, but I did not find any
> "search" references there.
>

Main.Search is a wiki page. All wiki pages are stored in the database, not
(directly) on the file system. You can edit a wiki page using the edit menu
(pencil icon), as long as you have edit right.

Hope this helps,
Marius


> ___
> 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] Delete page - Error number 0 in 3: Exception while hibernate execute

2015-10-09 Thread Hamster
Thanks guys, that should give us some clues to work on!



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Delete-page-Error-number-0-in-3-Exception-while-hibernate-execute-tp7596386p7596407.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


Re: [xwiki-users] rendering

2015-10-09 Thread Eduard Moraru
On Thu, Oct 8, 2015 at 6:18 PM, vinc...@massol.net 
wrote:

>
>
>
>
>
> On 8 Oct 2015 at 17:14:39, Eduard Moraru (enygma2...@gmail.com(mailto:
> enygma2...@gmail.com)) wrote:
>
> > On Thu, Oct 8, 2015 at 5:33 PM, vinc...@massol.net
> > wrote:
> >
> > >
> > >
> > >
> > > On 8 Oct 2015 at 16:23:51, Eduard Moraru (enygma2...@gmail.com(mailto:
> > > enygma2...@gmail.com)) wrote:
> > >
> > > > Hi,
> > > >
> > > > You did not mention how you are doing the "conversion". Are you
> using the
> > > > rendering script service?
> > > >
> > > > Anyway, one thing I can think of is to set the context document
> before
> > > > starting the conversion process. Here is a snippet that would
> exemplify
> > > > this:
> > > >
> > > > {{velocity}}
> > > > $xcontext.doc
> > > > $xcontext.setDoc($xwiki.getDocument('Sandbox.WebHome').document)
> > > > $xcontext.doc
> > > > {{/velocity}}
> > > >
> > > > Note that it requires Programming Right (on the author user) to be
> able
> > > to
> > > > be executable.
> > >
> > > BTW Edy, we have a {{context}} macro for doing this :)
> > >
> > > See
> > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro
> > >
> >
> > Did not know about this one.
> >
> > However, it seems limited to links and images, as the description says.
>
> No it’s not limited. It just uses:
>
> this.documentAccessBridge.pushDocumentInContext(backupObjects,
> docReference);
>
> + set the new source in the XDOM metadata
>
> So it should work for almost everything.
>

Ah, right. The trick is on the order of the macro usage though, since you
need to do context > velocity > code instead of velocity > context > code.
But even so, since the velocity context is isolated in that code, you can
not grab any result produced by that nested code piece to process in a
separate top level velocity macro, so it's only useful for displaying the
output of some velocity code executed *entirely* in the context of a
different page. So, at the end of the day, it's less useful, IMO.

Thanks,
Eduard

>
> Thanks
> -Vincent
>
> > Also, it is not really meant to be used programatically (i.e. velocity),
> so
> > not very useful in the current usecase, since you can`t grab the result
> in
> > velocity.
> >
> > Thanks,
> > Eduard
> >
> >
> > > Thanks
> > > -Vincent
> > >
> > > > Hope this helps,
> > > > Eduard
> > > >
> > > >
> > > > On Wed, Oct 7, 2015 at 12:38 PM, Peter Huisman wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am using a conversion from XWiki syntax to XHTML which is working
> > > like a
> > > > > charm. The challenge I have however is the following:
> > > > >
> > > > > I am running a (test velocity) script from the Sandbox space. I am
> > > > > converting documents in a different space (let’s say ).These
> > > documents
> > > > > contain objects with textarea’s where the references are in the
> form of
> > > > > [[text>>doc:filename]] since it refers to documents in the 
> space.
> > > The
> > > > > conversion of XWiki links is “going down the drain” since the
> > > converter is
> > > > > using the Sandbox space to resolve the reference to the page and
> > > generates
> > > > > a create reference to the file.
> > > > >
> > > > > Is there an easy way to set the (default) space (in either Java or
> > > > > Velocity) without having to run the script from the actual space
> (in
> > > this
> > > > > case, the  space)?
> > > > >
> > > > > Br,
> > > > >
> > > > > Peter
> > > > > ___
> > > > > 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
> > >
> > ___
> > 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] Authentication problem when a LDAP User first logs in to the subwiki

2015-10-09 Thread AlexIv
all is right, the subwiki creates its local ldap users
but I already use the option:
xwiki.authentication.authclass=com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl

Btw, forgot to mention, maybe it's important. When a user authenticates in
the subwiki first, his way in navigation is built not from the main wiki -
see the screenshot
 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Authentication-problem-when-a-LDAP-User-first-logs-in-to-the-subwiki-tp7596293p7596411.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


[xwiki-users] Antw.: rendering

2015-10-09 Thread Peter Huisman
Hi,

That is what I expected. I am however calling a java service for this where I’m 
going through a list of documents and doing the conversion. I expect that I 
have to set the document in the context from within the service?

Thanks for the answers,

Peter

On 8 Oct 2015 at 16:23:51, Eduard Moraru (enygma2...@gmail.com 
(mailto:enygma2...@gmail.com 
)) wrote:

> Hi,
> 
> You did not mention how you are doing the "conversion". Are you using the
> rendering script service?
> 
> Anyway, one thing I can think of is to set the context document before
> starting the conversion process. Here is a snippet that would exemplify
> this:
> 
> {{velocity}}
> $xcontext.doc
> $xcontext.setDoc($xwiki.getDocument('Sandbox.WebHome').document)
> $xcontext.doc
> {{/velocity}}
> 
> Note that it requires Programming Right (on the author user) to be able to
> be executable.

BTW Edy, we have a {{context}} macro for doing this :)

See
http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro 


Thanks
-Vincent

> Hope this helps,
> Eduard
> 
> 
> On Wed, Oct 7, 2015 at 12:38 PM, Peter Huisman wrote:
> 
>> Hi,
>> 
>> I am using a conversion from XWiki syntax to XHTML which is working like a
>> charm. The challenge I have however is the following:
>> 
>> I am running a (test velocity) script from the Sandbox space. I am
>> converting documents in a different space (let’s say ).These documents
>> contain objects with textarea’s where the references are in the form of
>> [[text>>doc:filename]] since it refers to documents in the  space. The
>> conversion of XWiki links is “going down the drain” since the converter is
>> using the Sandbox space to resolve the reference to the page and generates
>> a create reference to the file.
>> 
>> Is there an easy way to set the (default) space (in either Java or
>> Velocity) without having to run the script from the actual space (in this
>> case, the  space)?
>> 
>> Br,
>> 
>> Peter
>> ___
>> 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] Antw.: rendering

2015-10-09 Thread Eduard Moraru
Hi,

Yes, and make sure to restore the context document (generally in a finally
block) once your service finishes with the conversions.

Thanks,
Eduard

On Fri, Oct 9, 2015 at 9:51 AM, Peter Huisman  wrote:

> Hi,
>
> That is what I expected. I am however calling a java service for this
> where I’m going through a list of documents and doing the conversion. I
> expect that I have to set the document in the context from within the
> service?
>
> Thanks for the answers,
>
> Peter
>
> On 8 Oct 2015 at 16:23:51, Eduard Moraru (enygma2...@gmail.com  enygma2...@gmail.com>(mailto:enygma2...@gmail.com  enygma2...@gmail.com>)) wrote:
>
> > Hi,
> >
> > You did not mention how you are doing the "conversion". Are you using the
> > rendering script service?
> >
> > Anyway, one thing I can think of is to set the context document before
> > starting the conversion process. Here is a snippet that would exemplify
> > this:
> >
> > {{velocity}}
> > $xcontext.doc
> > $xcontext.setDoc($xwiki.getDocument('Sandbox.WebHome').document)
> > $xcontext.doc
> > {{/velocity}}
> >
> > Note that it requires Programming Right (on the author user) to be able
> to
> > be executable.
>
> BTW Edy, we have a {{context}} macro for doing this :)
>
> See
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro <
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Context+Macro>
>
> Thanks
> -Vincent
>
> > Hope this helps,
> > Eduard
> >
> >
> > On Wed, Oct 7, 2015 at 12:38 PM, Peter Huisman wrote:
> >
> >> Hi,
> >>
> >> I am using a conversion from XWiki syntax to XHTML which is working
> like a
> >> charm. The challenge I have however is the following:
> >>
> >> I am running a (test velocity) script from the Sandbox space. I am
> >> converting documents in a different space (let’s say ).These
> documents
> >> contain objects with textarea’s where the references are in the form of
> >> [[text>>doc:filename]] since it refers to documents in the  space.
> The
> >> conversion of XWiki links is “going down the drain” since the converter
> is
> >> using the Sandbox space to resolve the reference to the page and
> generates
> >> a create reference to the file.
> >>
> >> Is there an easy way to set the (default) space (in either Java or
> >> Velocity) without having to run the script from the actual space (in
> this
> >> case, the  space)?
> >>
> >> Br,
> >>
> >> Peter
> >> ___
> >> users mailing list
> >> users@xwiki.org 
> >> http://lists.xwiki.org/mailman/listinfo/users <
> http://lists.xwiki.org/mailman/listinfo/users>
> >>
> > ___
> > users mailing list
> > users@xwiki.org 
> > http://lists.xwiki.org/mailman/listinfo/users <
> 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


[xwiki-users] Users accounts

2015-10-09 Thread Maciej Fokt

Hello,

Can I set, for example, user's account active time? I mean, I'd like to  
set "Mr. Green's account will be active for 2 months" after this time his  
account will be blocked.


Can I do this?

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