Re: [xwiki-users] Container authentication

2015-08-25 Thread Thomas Mortagne
On Tue, Aug 25, 2015 at 5:04 PM, Tim Dudgeon
 wrote:
> So it looks like the AppServerTrustedAuthServiceImpl class is calling
> createUser():
> https://github.com/xwiki/xwiki-platform/blob/dd5152e8ff39e6358c20becb4c9925628cf08ea4/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/AppServerTrustedAuthServiceImpl.java
>
> But that should mean that my externally authenticated user should be being
> added and should get the XWiki.XWikiAllGroup.
>
> But that doesn't seem to be happening in my case as I'm being although I'm
> authenticated I'm denied access.

It's easy to check in the administration who is part of XWikiAllGroup.

>
> Have I misunderstood the situation?
>
> Tim
>
>
>
>
> On 24/08/2015 10:15, Thomas Mortagne wrote:
>>
>> Note that an authenticator is supposed to use
>> com.xpn.xwiki.XWiki#createUser API which automatically add the user in
>> the minimum groups.
>>
>> On Mon, Aug 24, 2015 at 4:11 PM, Thomas Mortagne
>>  wrote:
>>>
>>> The minimum group is XWiki.XWikiAllGroup.
>>>
>>> On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
>>>  wrote:

 On 24/08/2015 04:24, Thomas Mortagne wrote:
>
>
> Sounds like your user is not added in the right group(s) (which mean
> it does not have any right).



 Quite likely. But what groups are needed?


 Tim

 ___
 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



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


Re: [xwiki-users] FAQ Application tutorial is incomprehensible

2015-08-25 Thread Manuel Smeria
Hello Alex,

I will look over the manual FAQ tutorial this week and update it.
I'll also add some links to the documentation pages for the terms you
specified.

Thank you,
Manuel

On Tue, Aug 25, 2015 at 5:12 AM, Alex Henrie  wrote:

> Hi,
>
> I need to modify an XWiki application to add some functionality, but I
> am new to XWiki and I am having a really hard time understanding it.
> I'm running XWiki Enterprise 7.1.2. The FAQ application tutorial
> 
> looks promising, but the instructions are outdated and I can't figure
> out how to get a finished product that looks like what the tutorial
> has. The following instructions are particularly problematic:
>
> > In the code, change the word "Main" with the name of the space where you
> want you FAQ pages to be created
>
> There is no word "Main".
>
> > If you click on "View the template document" and edit that page in wiki
> mode, you will see the following code: {{include
> document="FAQ.FAQClassSheet"/}}
>
> The page is blank, I don't see any code.
>
> > Use the Create top level menu (when using the Colibri skin) or the
> Create Panel to create the FAQ.WebHome page
>
> I don't see anything marked "Create".
>
> Is there an experienced XWiki developer who would be willing to go
> through the FAQ application tutorial and rewrite it to make sense for
> the latest version of XWiki?
>
> More generally, it would be very helpful to have a glossary that
> defines and relates terms like "application", "page", "document",
> "object", "property", "class", "template", and "template provider".
> These terms are used in the documentation with little or no
> explanation, which adds to the confusion.
>
> -Alex
> ___
> 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] Container authentication

2015-08-25 Thread Tim Dudgeon
So it looks like the AppServerTrustedAuthServiceImpl class is calling 
createUser():

https://github.com/xwiki/xwiki-platform/blob/dd5152e8ff39e6358c20becb4c9925628cf08ea4/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/impl/xwiki/AppServerTrustedAuthServiceImpl.java

But that should mean that my externally authenticated user should be 
being added and should get the XWiki.XWikiAllGroup.


But that doesn't seem to be happening in my case as I'm being although 
I'm authenticated I'm denied access.


Have I misunderstood the situation?

Tim



On 24/08/2015 10:15, Thomas Mortagne wrote:

Note that an authenticator is supposed to use
com.xpn.xwiki.XWiki#createUser API which automatically add the user in
the minimum groups.

On Mon, Aug 24, 2015 at 4:11 PM, Thomas Mortagne
 wrote:

The minimum group is XWiki.XWikiAllGroup.

On Mon, Aug 24, 2015 at 1:50 PM, Tim Dudgeon
 wrote:

On 24/08/2015 04:24, Thomas Mortagne wrote:


Sounds like your user is not added in the right group(s) (which mean
it does not have any right).



Quite likely. But what groups are needed?


Tim

___
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] XWiki initialization failed! with xwiki-enterprise-web-7.2 ?

2015-08-25 Thread vinc...@massol.net
Hi again,

I’ve noticed someone else has reported the issue at 
http://jira.xwiki.org/browse/XWIKI-12425 with full details.

We’ll fix it.

Thanks
-Vincent

On 23 Aug 2015 at 19:21:50, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Hi Mohit,
>  
> This is possibly a bug but we’d need the full stack trace to know more. This 
> is a clean install, right (not an upgrade)?  
>  
> Thanks  
> -Vincent
>  
> On 23 Aug 2015 at 17:58:57, Mohit Gupta 
> (motgu...@gmail.com(mailto:motgu...@gmail.com)) wrote:
>  
> > Thanks Thomas and Clemens.
> >
> > I moved to java 7 and using ojdbc6.jar instead of ojdbc14.jar. But i am
> > getting below error when i hit url http://localhost:/wiki/ in browser
> > after my tomcat start
> >
> > Failed to extract Entity Resource Reference from URL [
> > http://localhost:/wiki/bin/view/Main/]] with root cause
> > java.sql.SQLException: ORA-01408: such column list already indexed
> >
> > at
> > oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
> > at
> > oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
> > at
> > oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
> > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
> > at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
> > at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
> > at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
> >
> >
> > On Mon, Aug 17, 2015 at 2:46 PM, Thomas Mortagne
> > wrote:
> >
> > > Yes the exact error looks more like jdbc issue but the first thing is
> > > to move to Java 7 instead of Java 6 in any case. I'm even surprised it
> > > went as far as trying to initialize the DB.
> > >
> > > On Mon, Aug 17, 2015 at 10:57 AM, Clemens Klein-Robbenhaar
> > > wrote:
> > > >
> > > > Alternatively it might have something to do with the JDBC driver.
> > > >
> > > > XWiki wants a JDBC-4 driver for the 7.x series
> > > > (This information can be found somewhere in the release notes for 7.0:
> > > >
> > > http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWiki70#HIssuesspecifictoXWiki7.0
> > > )
> > > >
> > > > Maybe you have a somewhat "older" Oracle JDBC driver?
> > > >
> > > > (Somehow your tomcat must have found a new java version, btw, or it
> > > would fail to start up with a different error message than what you got:
> > > >
> > > http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HUnsupportedmajor.minorversion51.0
> > > )
> > > >
> > > >
> > > > just a guess
> > > > Clemens
> > > >
> > > >
> > > >> But this issue does not seems to be related to java 6/7. Looking at 
> > > >> logs
> > > >> looks like its an issue related to database. Isn't it ?
> > > >>
> > > >> On Mon, Aug 17, 2015 at 11:52 AM, Thomas Mortagne <
> > > thomas.morta...@xwiki.com
> > > >>> wrote:
> > > >>
> > > >>> XWiki require Java 7 since 6.0.
> > > >>>
> > > >>> On Sun, Aug 16, 2015 at 3:11 PM, Mohit Gupta
> > > wrote:
> > >  I download the xwiki war file i.e 
> > >  xwiki-enterprise-web-7.2-milestone-2
> > > >>> with
> > >  db as Oracle.
> > > 
> > >  Here the configuration in hibernate.cfg.file
> > > 
> > >  jdbc:oracle:thin:@localhost
> > >  :1521:orcl
> > >  xwiki
> > >  xwiki
> > >  > > 
> > > name="connection.driver_class">oracle.jdbc.driver.OracleDriver
> > >  > >  name="dialect">org.hibernate.dialect.Oracle10gDialect
> > >  true
> > >  0
> > >  false
> > >  true
> > >  20
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  But when i hit the url in browser i get below error
> > > 
> > > 
> > > 
> > > 
> > >  XWiki initialization failed!
> > > 
> > >  Exception thrown during job execution
> > >  class java.lang.AbstractMethodError: null
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.DelegatingConnection.isValid(DelegatingConnection.java:914)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:283)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:357)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2287)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2038)
> > >  at
> > > 
> > > >>>
> > > org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1533)
> > >  at
> > > 
> > > >>>
> > > com.xpn.xwiki.store.DB