Re: [xwiki-users] Authentication and wizard problem on 5.4.2 and encoding problems

2014-03-06 Thread Pascal BASTIEN
I remove status.xml the distribution wizard doesn't launch.
I remove status.xml AND  delete 
and recreate my database... the distribution wizard launch...


By the way, I have some encoding problems on tag and page:


If i use "bac à sable" in a tag. The tag display like this: avec "bac à 
sable".

If I create a new page "MaCatégorie"

/bin/edit/Sandbox/MaCatégorie?template=&parent=Sandbox.WebHome&title=MaCatégorie

In title I have: "MaCatégorie" (then I correct the title)

If I create a page child of "MaCatégorie" I obtain: "MaCatégorie » MaPage" 

and worst the search tools doesn't found my page "Ma caté*"


Your xwiki cloud doesn't have this problem. Which xwiki version do you use?

Thxs




 De : Pascal BASTIEN 
À : "vinc...@massol.net" ; XWiki Users  
Envoyé le : 
Objet : Re: [xwiki-users] Authentication and wizard problem on 5.4.2
 


>
>That’s a pity. It would be nice to know what was the problem so that we can 
>reproduce and fix it, otherwise we won’t be able to improve it! :)
Sure!



>> I use the .WAR on tomcat server and postgres database. 
>> 
>> The Wizard to install the UI extension aren't launch on
        first boot. Are there a way to manuelly launch? 
>
>My guess is that you’re reusing an existing xwiki data dir and
        in that dir the DW has been marked as having been executed for
        5.4.2. Deleting the
        [datadir]/jobs/status/distribution/status.xml should work.
>
>> And worst the Admin/admin account doesn't work! (Invalid
        credentials) 
>
>That means that your database is empty / doesn’t contain the
        XWiki.Admin page.
>
>Make sure your hibernate.cfg.xml is configured correctly.
>
>> Am I alone?  
>
>
>Most likely yes ;)
Fortunely for xwiki :-)

Thxs: your quick answers help me a lot (I think I modified my datadir path: I 
put it
    on another directory..).

I will check my database. Admin account is created by the
    distribution wizard then?

 I keep you in touch tomorrow ... because my remote access ...
    doesn't work ever!

NB: the status.xml file is documented somewhere?
___
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 and wizard problem on 5.4.2

2014-03-06 Thread panyasan
I might have hit a similar problem. I have left a note on
http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard#Comments
but I am not sure it will be read there:

"Using version 5.4.2 from Debian packages. Thanks for this guide, but it is
not clear how to get from step "You will be prompted to insert credentials
for the Administrator, which are Admin/admin." to step "After the
instalation is complete, you can click on the Continue button to proceed to
the next step." (It would be easier to refer to the sections if they had
numbers...). After logging in with Admin/admin,  I had to go back to the
distribution wizard manually, like so:

- use the browser back /history button to navigate to the
../distribution/... link. 
- click on "INSTALL" or  "DETAILS". There will be an error message.
- Navigate back and forth until the "XWiki Enterprise - UI - Main wiki"
extension is displayed as "installed" and the "CONTINUE" button is shown. 

Any other action leaves you stuck in an incompletely installed wiki with no
way of finishing the setup. The recommended solution to re-run the
distribution wizard (see
http://www.xwiki.org/xwiki/bin/view/FAQ/Why+does+the+Distribution+Wizard+fail+to+appear+after+an+install)
did not work to get back to the wizard, at least not for me.
I am sure this is a bug. I could reproduce it at least three times."

I also am experiencing a lot of untranslated message keys, and the wiki
extension is not working. Is there a way this can be fixed?



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Authentication-and-wizard-problem-on-5-4-2-tp7589441p7589447.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] Authentication and wizard problem on 5.4.2

2014-03-06 Thread Pascal BASTIEN

>
>That’s a pity. It would be nice to know what was the problem so that we can 
>reproduce and fix it, otherwise we won’t be able to improve it! :)
Sure!



>> I use the .WAR on tomcat server and postgres database. 
>> 
>> The Wizard to install the UI extension aren't launch on
first boot. Are there a way to manuelly launch? 
>
>My guess is that you’re reusing an existing xwiki data dir and
in that dir the DW has been marked as having been executed for
5.4.2. Deleting the
[datadir]/jobs/status/distribution/status.xml should work.
>
>> And worst the Admin/admin account doesn't work! (Invalid
credentials) 
>
>That means that your database is empty / doesn’t contain the
XWiki.Admin page.
>
>Make sure your hibernate.cfg.xml is configured correctly.
>
>> Am I alone?  
>
>
>Most likely yes ;)
Fortunely for xwiki :-)

Thxs: your quick answers help me a lot (I think I modified my datadir path: I 
put it
on another directory..).

I will check my database. Admin account is created by the
distribution wizard then?

 I keep you in touch tomorrow ... because my remote access ...
doesn't work ever!

NB: the status.xml file is documented somewhere?
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Container macro with more than 2 columns

2014-03-06 Thread Jeremie BOUSQUET
Hello,

I don't know if it is the place to discuss issues, or if I should put the
following as comment of the issue in jira, but ... I can put it afterwards
in jira.

I thought about it, and imagined that only way around, would be to assign a
different "id" to the column elements added by each different {{container}}
macro.

For example the following:
{{container}}
...3 columns...
{{/container}}
{{container}}
...2 columns...
{{/container}}

Would generate html :


... columns...


...columns...


columns css would be injected twice with:
/columns.css?columns=3&id=container1
/columns.css?columns=2&id=container2
(but I don't know if it's even possible to inject it twice with same name
and different params as currently it's not the case) (*)

In CSS column width would be computed from number of columns, and selector
changed to:

#${request.id}.container-columns .column { ...}

WDYT ?
2 problems I see are:
- point (*) above
- generate automatically an id for the container (and how ?) like
"containerN", or force passing a new parameter "id" to the container macro
(or maybe syntax (% id=... %) could work ?)

BR,
Jeremie



2014-03-05 17:25 GMT+01:00 Jeremie BOUSQUET :

> Thanks Vincent,
>
> I created a JIRA for it:
> http://jira.xwiki.org/browse/XWIKI-10118
>
> I nailed the problem maybe, but I didn't nail the solution :) Doesn't seem
> so easy ...
>
> BR,
> jeremie
>
>
> 2014-03-05 17:03 GMT+01:00 vinc...@massol.net :
>
> Hi Jeremie,
>>
>> I think it's Anca who coded this container macro so I don't know the
>> details but it looks like a bug indeed.
>>
>> I'd file a jira issue if I were you since it seems like you nailed the
>> problem :)
>>
>> Thanks
>> -Vincent
>>
>> On 5 Mar 2014 at 16:55:30, Jeremie BOUSQUET (jeremie.bousq...@gmail.com
>> (mailto:jeremie.bousq...@gmail.com)) wrote:
>>
>> > Hello,
>> >
>> > I have a weird issue with {{container}} macro in xwiki 4.5.2.
>> > If I want to display 3 columns, like this for example:
>> >
>> > {{container layoutStyle="columns"}}
>> > ((( a )))
>> > ((( b )))
>> > ((( c )))
>> > {{/container}}
>> >
>> > It shows content over only 2 columns like this:
>> > a b
>> > c
>> >
>> > ... instead of expected:
>> > a b c
>> >
>> > After having a look at the source :
>> >
>> https://github.com/xwiki/xwiki-platform/blob/xwiki-platform-4.5.2/xwiki-platform-core/xwiki-platform-rendering/xwiki-platform-rendering-macros/xwiki-platform-rendering-macro-container/src/main/java/org/xwiki/rendering/internal/macro/container/ColumnsLayoutManager.java
>> >
>> > ... I think I understand the problem.
>> > It seems a limitation of container macro, is that it injects
>> columns.css in
>> > the page with number of columns as parameter. So if you add more than
>> one
>> > {{container}} to the same page, they can't have a different number of
>> > columns ...
>> > For instance in my case I used the container macro in a Panel, with 2
>> > columns - so I can never add more than 2 columns in other locations. I
>> > removed the columns from the Panel, and now my 3-columns are correctly
>> > displayed :)
>> >
>> > If you agree I could fill a Jira for this (I searched quickly, didn't
>> find
>> > it already described)
>> >
>> > Thanks,
>> > Jeremie
>> > ___
>> > 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 and wizard problem on 5.4.2

2014-03-06 Thread vinc...@massol.net
Hi,

On 6 Mar 2014 at 16:37:20, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> Hello,  
>  
> I installed xwiki 5.4.2 from scractch (because the upgrade from 5.4.1 didn't 
> work well) 

That’s a pity. It would be nice to know what was the problem so that we can 
reproduce and fix it, otherwise we won’t be able to improve it! :)

> I use the .WAR on tomcat server and postgres database.  
>  
> The Wizard to install the UI extension aren't launch on first boot. Are there 
> a way to manuelly launch?  

My guess is that you’re reusing an existing xwiki data dir and in that dir the 
DW has been marked as having been executed for 5.4.2. Deleting the 
[datadir]/jobs/status/distribution/status.xml should work.

> And worst the Admin/admin account doesn't work! (Invalid credentials) 

That means that your database is empty / doesn’t contain the XWiki.Admin page.

Make sure your hibernate.cfg.xml is configured correctly.

> Am I alone? 

Most likely yes ;)

> Thxs.  
>  
> Pascal B  

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


[xwiki-users] Authentication and wizard problem on 5.4.2

2014-03-06 Thread Pascal BASTIEN
Hello,

I installed xwiki 5.4.2 from scractch (because the upgrade from 5.4.1 didn't  
work well)
I use the .WAR on tomcat server and postgres database.

The Wizard to install the UI extension aren't launch on first boot. Are there a 
way to manuelly launch?

And worst the Admin/admin account doesn't work! (Invalid credentials)

Am I alone?

Thxs.

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


Re: [xwiki-users] XWiki and LDAP TLS binding

2014-03-06 Thread Claude Lepere
Hello!

I didn't find how to give directly to XWiki the keystore password in
xwiki.cfg or somewhere else.
I used the Tomcat Java options: -Djavax.net.ssl.keyStore=/path-to-jks
-Djavax.net.ssl.keyStorePassword=.
Without this workaround, XWiki did not send the client certificate required
by the LDAP server.

See http://jira.xwiki.org/browse/XWIKI-5674 and
http://jira.xwiki.org/browse/XWIKI-9319.

Thank you for the discussion.

Claude Lepère




On Tue, Mar 4, 2014 at 1:51 PM, Pascal BASTIEN wrote:

>
> Hello,
>
> I didn't modify  my catalina.sh because I indicate my keystore file in my
> ./webapps/xwiki_5.4.1/WEB-INF/xwiki.cfg file
> #-# The keystore file to use in SSL connection
>
> xwiki.authentication.ldap.ssl.keystore=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/jssecacerts
>
>
> Pascal B
>
>
> 
>  De : claude lepere 
> À : users@xwiki.org
> Envoyé le :
> Objet : Re: [xwiki-users] XWiki and LDAP TLS binding
>
>
> Hi all!
>
> Our LDAP server also requires the client his certificate
> (olcTLSVerifyClient = demand).
> As we are in Java on client side, we have to use a Java keystore (jks)
> containing the cert and the corresponding private key of the client
> (=XWiki).
> The way we found to give this info is in the Tomcat conf file
> /etc/default/tomcat7 adding -Djavax.net.ssl.keyStore=/path-to-jks
> -Djavax.net.ssl.keyStorePassword=changeit to JAVA_OPTS.
> Do you know other ways?
>
> Thank you for your answer. Claude Lepère
>
>
> On Sat, Mar 1, 2014 at 12:15 PM, PascalB [via XWiki] <
> ml-node+s475771n7589382...@n2.nabble.com> wrote:
>
> > Hello,
> >
> > I used this method to authenticate on my LDAP TLS:SSL:
> >
> > http://jira.xwiki.org/browse/XWIKI-865
> >
> > Pascal B
> >
> >
> >
> > 
> >  De : Claude Lepere <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=7589382&i=0>>
> >
> > À : [hidden email]  >
> > Envoyé le : Vendredi 21 février 2014 12h53
> > Objet : [xwiki-users] XWiki and LDAP TLS binding
> >
> >
> > Hi!
> >
> > Does XWiki support LDAP TLS binding (that means a ldap connection on port
> > 389 and not a SSL ldaps connection on port 686) with both server and
> > client
> > (= XWiki) certificates? If so, how to set up that feature?
> > Many thanks for your response.
> >
> > Claude Lepère
> > ___
> > users mailing list
> > [hidden email] 
> > http://lists.xwiki.org/mailman/listinfo/users
> > ___
> > users mailing list
> > [hidden email] 
> > http://lists.xwiki.org/mailman/listinfo/users
> >
> >
> > --
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://xwiki.475771.n2.nabble.com/XWiki-and-LDAP-TLS-binding-tp7589243p7589382.html
> >  To unsubscribe from XWiki and LDAP TLS binding, click here<
> http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7589243&code=Y2xhdWRlbGVwZXJlQGdtYWlsLmNvbXw3NTg5MjQzfC02Mzk2OTM4MTI=
> >
> > .
> > NAML<
> http://xwiki.475771.n2.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/XWiki-and-LDAP-TLS-binding-tp7589243p7589401.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Redirect from user profile

2014-03-06 Thread kalor
Thanks a lot for the answer, that's what I was looking for. Once you
answered, solution seems obvious, but somehow I got stuck looking for this
sheet document. 
It was a live-saving answer, thanks a lot again :)

Karol



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Redirect-from-user-profile-tp7589432p7589438.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] Redirect from user profile

2014-03-06 Thread Clemens Klein-Robbenhaar
On 03/06/2014 12:11 PM, kalor wrote:
> Hi, 
> 
> I'm integrating xwiki with external web application. I want to be able to
> redirect from xwiki user profile, to user profile of external application.
> How can I redirect from profile, or at least how can I access user profile
> template, so I can modify it to manage redirection? 

You can modify the user profile at: /xwiki/bin/view/XWiki/XWikiUserSheet
(use the wiki-editor to edit it, the WYSIWYG editor gets confused by the lots 
of code ;)

I would recommend just to add a link to the non-wiki user profile,
or at least before doing the redirect check if the current page is not the 
XWikiUserSheet page itself
(as otherwise you might never be able to edit it again ...)

Clemens

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


Re: [xwiki-users] compiling a custom XWikiAuthServiceImpl; was: SSO

2014-03-06 Thread Clemens Klein-Robbenhaar
On 03/04/2014 02:12 PM, Daniel Ebanja wrote:

> Hallo xwiki-users,
> i have a webapplication from which i direct users to XWIKI through a link.
> The idea i have now is using basic Authentication:
> http://
> username:passw...@mywiki.xwiki.com/xwiki/bin/view/Main/WebHome?basicauth=1
> 
> The problem here is i am using username:OID in the url above.
> I will like to customize the basic authentication such that i can use the
> OID to get userpassword from a database. Register the user in xwiki if it's
> the first time getting to xwiki and login if user already exist.
> 
> The two apps are running in tomcat and on debian OS.
> 
> I tried to write a java class(with eclipse on windows) extending the
> XWikiAuthServiceImpl class. Eclipse did not recognise the packages.Could i
> get the packages from somewhere? Is there a way to test an implementation?
> 

Yes, you can ;)

The best way (IMO) to do that is to add XWiki as a maven dependency,
i.e. adding to your pom.xml something like:




org.xwiki.platform
xwiki-platform-oldcore
5.4.2

[...]

But you probably did not set up your project with maven, because all you want
is to write that single auth-class ... so for a "quick and dirty" approach ...

what you can do is:
  - get the "standalone" distribution,
  - unzip it somewhere
  - inside the unzipped xwiki-enterprise-jetty-hsqldb-x.y.z
add all files in the webapps/xwiki/WEB-INF/lib to the eclipse classpath
(just add all for simplicity, as we talk about "quick and dirty" ;)

Afterwards you should be able to compile your custom XWikiAuthServiceImpl class,
and place the generated class-file in the WEB-INF/classes folder
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Redirect from user profile

2014-03-06 Thread kalor
Hi, 

I'm integrating xwiki with external web application. I want to be able to
redirect from xwiki user profile, to user profile of external application.
How can I redirect from profile, or at least how can I access user profile
template, so I can modify it to manage redirection? 

Best regards 
Karol



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Redirect-from-user-profile-tp7589432.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