Re: [xwiki-users] Problem with update from 7.1.2 to 8.4.1

2017-01-18 Thread aleksey-s
Hi,

Does anyone know how to import xar without ui or may be exist different page
for import ? (not administrator ui which not work on my wiki)



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Problem-with-update-from-7-1-2-to-8-4-1-tp7601982p7602476.html
Sent from the XWiki- Users mailing list archive at Nabble.com.


Re: [xwiki-users] CKEditor

2017-01-18 Thread shouldbe q931
On Wed, Jan 18, 2017 at 6:38 AM, Marius Dumitru Florea
 wrote:
> On Tue, Jan 17, 2017 at 10:48 PM, shouldbe q931 
> wrote:
>
>> On Tue, Jan 17, 2017 at 10:58 AM, Marius Dumitru Florea
>>  wrote:
>> > On Mon, Jan 16, 2017 at 8:06 PM, shouldbe q931 
>> > wrote:
>> >
>>
>> The edit mode looks like
>>
>
>> https://s23.postimg.org/mnapaie3f/editmode.png
>
>
> This is how it should look like, since XWiki 8.2
> http://www.xwiki.org/xwiki/bin/download/ReleaseNotes/ReleaseNotesXWiki82RC1/WebHome/defaultWysiwygEditorConfig.png
> . So your administration UI (i.e. wiki pages) has not been upgraded
> property. You're missing at least the "Default WYSIWYG Editor" drop down
> and the "Syntaxes" configuration section (on the left).

it doesn't look like that :-(

>> As ckeditor shows as "Installed as a dependency", how might I go about
>> upgrading it properly ?
>>
>> https://s27.postimg.org/6k9up5i8j/dependency.png
>
>
> You cannot upgrade it in 8.4.1 ( http://jira.xwiki.org/browse/XE-1570 ) but
> 1.10 is the latest version ATM anyway. The problem you have, most probably,
> is that it wasn't upgraded correctly to this 1.10 version, and since you're
> also missing stuff from the administration it looks like the problem is
> more general: the upgrade to XWiki 8.4.1 was not done correctly (at least
> for the UI part). Did you use the Distribution Wizard to upgrade the wiki
> pages? You probably had merge conflicts which were not resolved correctly
> (either by Extension Manager or by the person that did the upgrade).
>
>
I'm fairly sure that there were no obvious issues when using the
distribution wizard last time (so much nicer then it used to be). When
I tried an update to 8.4.4, there were some merge conflicts, and on
each of them I chose to not merge and not keep the old.

The screengrabs in the links were taken after I had upgraded to 8.4.4,
I have since reverted it to the (offline) snapshot of the database
server and xwiki server I took before the upgrade (the joy of
virtualisation :-)

Should I try importing the 8.4.1 admin .war and see if that fixes it ?
or is there a different course you would suggest ?

Cheers

Arne


[xwiki-users] jodatime challenge

2017-01-18 Thread Gerritjan Koekkoek
Hi,


I would like to calculate the age of a person in years

I have the date of birth stored in a XWiki class-object in a property of type 
Date/Time


The age should be calculated against NOW! (Sysdate in local-user time, although 
the rounding in years does not make this a very important requirement.


Also I would like to be able to calculate a duration by subtracting two dates 
stored in a

 XWiki class-object in a property of type Date/Time


Please a velocity-based guidance how to do this? (JoDaTime based)


Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website
Facebook
email





[xwiki-users] Possible optimisations for xwiki/xwiki-mysql-tomcat docker image

2017-01-18 Thread Denis GERMAIN
Hi list,

Vincent Massol has asked for code review after official docker image
annoncement and though I am no Docker expert, I have found a few leads to
reduce image size and might have some suggestions to improve it.

With 3 little changes I have gained about 500 MB, but I still have to make
sure everything still works.
- 200 of those MB where gained by a commonly used trick : adding
"--no-install-recommends" option to apt-get.
Some packages that are commonly installed with libreoffice might have been
skipped and I still have to determine if it's OK or not.

- The other 300 MB are safe. Most of it comes from "RUN chown -R
tomcat8:tomcat8 /var/lib/tomcat8" being moved inside the same layer as the
curl xwiki.war && unzip.

docker images
REPOSITORY   TAG IMAGE
IDCREATED SIZE
xwiki-mysql-tomcat   after
b05844c94dd07 seconds ago   1.157 GB
xwiki-mysql-tomcat   before
174d549368d52 hours ago 1.689 GB

As soon as I have checked this works, I'll do a pull request.
In the meantime, code is online on
https://github.com/zwindler/docker-xwiki-1/tree/clear_apt

Regards
Denis GERMAIN


Re: [xwiki-users] export to pdf with intern links

2017-01-18 Thread Vincent Massol
Hi Timo,

> On 18 Jan 2017, at 14:37, Timo Dachs-Wegmann  wrote:
> 
> Hello,
> 
> I have a problem with pdf export extensions. I want to export multiple sites 
> in a defined space which is no problem at all. 
> But it starts getting serious when I want to include links. 
> 
> The =1 for example works fine but it only includes the direct 
> links to the website.
> 
> I need a possibility to change the links to the website to pdf intern links.
> Can you see a way how this could work?
> 
> That means that I want to export for example a front page with links to other 
> pages and export them as well and have an internal link to the pages below 
> the front page in the pdf file .
> 
> Thank you in advance.

Interesting use case. Would be great if you could report a jira issue for this 
at http://jira.xwiki.org.

This is not supported right now. We do this for images by embedding them in the 
PDF. If you’re curious the code is at 
https://github.com/xwiki/xwiki-platform/blob/e70e5e7b43805802c23102c2fb51b95e1103daac/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/pdf/impl/PdfURLFactory.java#L41-L41

It should be possible to do something similar for links I guess.

Thanks
-Vincent

> 
> Kind regards
> 
> Timo Dachs-Wegmann
> -IT- 



[xwiki-users] export to pdf with intern links

2017-01-18 Thread Timo Dachs-Wegmann
Hello,

I have a problem with pdf export extensions. I want to export multiple sites in 
a defined space which is no problem at all. 
But it starts getting serious when I want to include links. 

The =1 for example works fine but it only includes the direct 
links to the website.

I need a possibility to change the links to the website to pdf intern links.
Can you see a way how this could work?

That means that I want to export for example a front page with links to other 
pages and export them as well and have an internal link to the pages below the 
front page in the pdf file .

Thank you in advance.

Kind regards

Timo Dachs-Wegmann
-IT- 

--





Re: [xwiki-users] Exclude "raw content" from solr search

2017-01-18 Thread Enste, Patrick
Hey,

thank you very much :) This helped a lot! Now the raw content is not shown.

Unfortunately I have another problem now: The text inside {{html}} tags (and so 
on) seems not to be indexed.

Best regards,
Patrick



Re: [xwiki-users] LDAP issue when moving from 8.0 to 8.4.4

2017-01-18 Thread Vincent Massol
Hi Thebault,

> On 18 Jan 2017, at 11:07, Thébault, Médérick 
>  wrote:
> 
> No worries, I find a thread.
> Sorry for the trouble

Cool.

FYI XWiki SAS (http://xwiki.com) has also recently released an Active Directory 
application for XWiki (paying) that makes it simpler to use XWiki and AD.

See https://store.xwiki.com/xwiki/bin/view/Extension/ActiveDirectoryApplication.

It’s also advertised from 
http://extensions.xwiki.org/xwiki/bin/view/Main/WebHome

Just thought you might want to know ;)

Thanks
-Vincent

> MT
>  Message original 
> Sujet : [xwiki-users] LDAP issue when moving from 8.0 to 8.4.4
> De : Médérick Thebault 
> Pour : XWiki Users 
> Date : 18/01/2017 11:01
>> Good morning,
>> 
>> I had a working set-up, connected to one AD.
>> I am trying to figure out what went wrong during my migration.
>> First, when accessing LDAP admin page of my wiki, "Le service LDAP n'est pas 
>> disponible. Veuillez vérifier votre
>> installation." can be seen. 'does not sounds good hum... even if the
>> Then when trying to change the log level to diagnose, I am not able to see 
>> the
>> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl class, class 
>> referenced in the LDAP section of my xwiki.cfg file,
>> in the list of available classes.
>> Could you please pin point into the right direction?
>> I also browsed the extension, and saw that there is an extension for LDAP 
>> authentication when using ActiveDirectory. Is
>> it brand new?
>> Thank you very much for your answers.
>> Regards,
>> 
>> MT
>> 
> 
> --
> It's 106 miles to Chicago, we have a full tank of gas, half a packet of 
> cigarettes, it's dark and we are wearing sunglasses.
> Hit it!
> 
> 
> 
> 
> 
> Bretagne Angleterre Irlande (Groupe Brittany Ferries)
> Siège social : Port du Bloscon CS 60 072 29688 Roscoff cedex France - Tél + 
> 33 2 98 29 28 00 - Fax + 33 2 98 29 27 00
> Société Anonyme à directoire et conseil de surveillance au capital de 
> 22.831.056 
> RCS Brest 927 250 217 - Code APE 5010Z - Registre des Opérateurs de Voyages 
> et de Séjours  N IMO29100011
> 
> Ce message et toutes les pièces jointes peuvent contenir des informations 
> confidentielles à l'intention exclusive de ses destinataires.
> Si vous le recevez par erreur, merci de bien vouloir nous en informer, et le 
> supprimer.
> This message and any attachments may contain confidential information for the 
> intended recipient only.
> If you have received it in error, please contact us, and delete it.
> 
> 
> 
> 
> 



Re: [xwiki-users] LDAP issue when moving from 8.0 to 8.4.4

2017-01-18 Thread Thébault , Médérick
No worries, I find a thread.
Sorry for the trouble

MT
 Message original 
Sujet : [xwiki-users] LDAP issue when moving from 8.0 to 8.4.4
De : Médérick Thebault 
Pour : XWiki Users 
Date : 18/01/2017 11:01
> Good morning,
>
> I had a working set-up, connected to one AD.
> I am trying to figure out what went wrong during my migration.
> First, when accessing LDAP admin page of my wiki, "Le service LDAP n'est pas 
> disponible. Veuillez vérifier votre
> installation." can be seen. 'does not sounds good hum... even if the
> Then when trying to change the log level to diagnose, I am not able to see the
> com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl class, class referenced 
> in the LDAP section of my xwiki.cfg file,
> in the list of available classes.
> Could you please pin point into the right direction?
> I also browsed the extension, and saw that there is an extension for LDAP 
> authentication when using ActiveDirectory. Is
> it brand new?
> Thank you very much for your answers.
> Regards,
>
> MT
>

--
It's 106 miles to Chicago, we have a full tank of gas, half a packet of 
cigarettes, it's dark and we are wearing sunglasses.
Hit it!





Bretagne Angleterre Irlande (Groupe Brittany Ferries)
Siège social : Port du Bloscon CS 60 072 29688 Roscoff cedex France - Tél + 33 
2 98 29 28 00 - Fax + 33 2 98 29 27 00
Société Anonyme à directoire et conseil de surveillance au capital de 
22.831.056 
RCS Brest 927 250 217 - Code APE 5010Z - Registre des Opérateurs de Voyages et 
de Séjours  N IMO29100011

Ce message et toutes les pièces jointes peuvent contenir des informations 
confidentielles à l'intention exclusive de ses destinataires.
Si vous le recevez par erreur, merci de bien vouloir nous en informer, et le 
supprimer.
This message and any attachments may contain confidential information for the 
intended recipient only.
If you have received it in error, please contact us, and delete it.








[xwiki-users] LDAP issue when moving from 8.0 to 8.4.4

2017-01-18 Thread Thébault , Médérick
Good morning,

I had a working set-up, connected to one AD.
I am trying to figure out what went wrong during my migration.
First, when accessing LDAP admin page of my wiki, "Le service LDAP n'est pas 
disponible. Veuillez vérifier votre
installation." can be seen. 'does not sounds good hum... even if the
Then when trying to change the log level to diagnose, I am not able to see the
com.xpn.xwiki.user.impl.LDAP.XWikiLDAPAuthServiceImpl class, class referenced 
in the LDAP section of my xwiki.cfg file,
in the list of available classes.
Could you please pin point into the right direction?
I also browsed the extension, and saw that there is an extension for LDAP 
authentication when using ActiveDirectory. Is
it brand new?
Thank you very much for your answers.
Regards,

MT

--
Can you hear the thunder?






Bretagne Angleterre Irlande (Groupe Brittany Ferries)
Siège social : Port du Bloscon CS 60 072 29688 Roscoff cedex France - Tél + 33 
2 98 29 28 00 - Fax + 33 2 98 29 27 00
Société Anonyme à directoire et conseil de surveillance au capital de 
22.831.056 
RCS Brest 927 250 217 - Code APE 5010Z - Registre des Opérateurs de Voyages et 
de Séjours  N IMO29100011

Ce message et toutes les pièces jointes peuvent contenir des informations 
confidentielles à l'intention exclusive de ses destinataires.
Si vous le recevez par erreur, merci de bien vouloir nous en informer, et le 
supprimer.
This message and any attachments may contain confidential information for the 
intended recipient only.
If you have received it in error, please contact us, and delete it.








Re: [xwiki-users] File Management Extension

2017-01-18 Thread Marius Dumitru Florea
On Tue, Jan 17, 2017 at 3:31 PM, Paul Pinkerton (ACLCO) 
wrote:

> I am interested in creating an easy to navigate document library.  I was
> thinking of using the File Manager Extension (as this is what it's built
> for) - but the documentation is light on some specifics.
>
>

> -I am wondering if I can copy this to a new space (currently
> xwiki/bin/view/FileManager) and run multiple file libraries on the site,
> each with their own permissions (space based)?  When I copy the FileManager
> space to a new space, I get the warning that I need to migrate to the new
> structure.  Will this affect anything other than the specific space it is
> in?
>

No, it should affect only the current space. See
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/Migrator.xml#L80
.


>
> -Also wondering if I can add a metadata field somehow?  One of the things
> I liked about using a file library in SP is the ability to list additional
> fields (ie. notes about why the file is important, contents, etc...) in the
> grid.  Is this easy to do?
>

Adding meta data is fairly easy, by adding new properties to the FileClass
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/FileClass.xml
. Displaying and editing this meta data directly from the File Manager UI
is more complex, but you can do it relatively easy from the "file view"
(what you see when you click on a file from the files live table), by
editing FileSheet
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/FileSheet.xml#L258
.

Hope this helps,
Marius


>
>
> Paul Pinkerton
> ACLCO/ KnowledgeNow
>