[xwiki-users] Uncaught Exceptions

2011-07-18 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Application Server: Tomcat 5.5
Xwiki version: 2.7.33656


I'm encountering several different exceptions that apparently go uncaught, and 
therefore get logged to Tomcat's standard out log.  This causes the standard 
out log to get filled with a lot of garbage, even though the wiki seemingly 
runs fine.

An example: 

org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with id 
[/templates/xwikivars.vm]
...
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation 
of method 'hasAccessLevel' in  class com.xpn.xwiki.api.XWiki threw exception 
java.lang.NullPointerException at /templates/xwikivars.vm[line 4, column 25]


I would really like to know if anyone can suggest a way to get these uncaught 
exceptions to be logged to a different file instead.  I'm not seeing any way to 
do so with log4j etc.


Thanks,

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


Re: [xwiki-users] How can I capture an exception that is goingtostandard out

2011-06-08 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Bump.  Really hoping someone can help out here.  These exceptions are filling
my Tomcat logs badly.

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Scardino,Leonard R Jr ERDC-ITL-MS Contractor
Sent: Wednesday, June 01, 2011 2:50 PM
To: XWiki Users
Subject: Re: [xwiki-users] How can I capture an exception that is
goingtostandard out

1. Exact console logs:   There are a bunch of these, but here is an example -
java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement
with address: com.mysql.jdbc.JDBC4PreparedStatement@179c0a7: insert into
xwikircs (XWR_DATE, XWR_COMMENT, XWR_AUTHOR, XWR_DOCID, XWR_VERSION1,
XWR_VERSION2) values (** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **)
is closed.
at
org.apache.commons.dbcp.DelegatingStatement.checkOpen(DelegatingStatement.jav
a:137)
at
org.apache.commons.dbcp.DelegatingStatement.clearBatch(DelegatingStatement.ja
va:294)
at
org.apache.commons.dbcp.PoolablePreparedStatement.clearBatch(PoolablePrepared
Statement.java:86)
at
org.apache.commons.dbcp.PoolablePreparedStatement.passivate(PoolablePreparedS
tatement.java:134)
at
org.apache.commons.dbcp.PoolingConnection.passivateObject(PoolingConnection.j
ava:350)
at
org.apache.commons.pool.impl.GenericKeyedObjectPool.addObjectToPool(GenericKe
yedObjectPool.java:1570)
at
org.apache.commons.pool.impl.GenericKeyedObjectPool.returnObject(GenericKeyed
ObjectPool.java:1526)
at
org.apache.commons.dbcp.PoolablePreparedStatement.close(PoolablePreparedState
ment.java:96)
at
org.apache.commons.dbcp.DelegatingStatement.close(DelegatingStatement.java:16
8)
at
org.apache.commons.dbcp.DelegatingStatement.close(DelegatingStatement.java:16
8)
at
org.hibernate.jdbc.AbstractBatcher.closePreparedStatement(AbstractBatcher.jav
a:534)
at
org.hibernate.jdbc.AbstractBatcher.closeStatement(AbstractBatcher.java:269)
at
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
at
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(Abstr
actFlushingEventListener.java:298)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventLi
stener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBase
Store.java:853)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBase
Store.java:824)
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java
:643)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:181)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1451)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1398)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1393)
at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.updateSchedulerJobClass(Schedu
lerPlugin.java:680)
at
com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.init(SchedulerPlugin.java:119)
at
com.xpn.xwiki.plugin.XWikiPluginManager.initPlugin(XWikiPluginManager.java:15
3)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugin(XWikiPluginManager.java:90)
at
com.xpn.xwiki.plugin.XWikiPluginManager.addPlugins(XWikiPluginManager.java:11
8)
at com.xpn.xwiki.XWiki.preparePlugins(XWiki.java:1173)
at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:842)
at com.xpn.xwiki.XWiki.init(XWiki.java:771)
at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:398)
at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:486)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:137)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:117)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcess
or.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:269

Re: [xwiki-users] Problem with deleted user - not fully deleted?

2011-06-03 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Wow, such a simple solution.  That was it exactly.  Now I have no idea why
when I deleted the user it didn't delete the page, but it didn't.

Thank you very much.  I'm a HUGE fan of simple solutions.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Caleb James DeLisle
Sent: Thursday, June 02, 2011 11:38 PM
To: XWiki Users
Subject: Re: [xwiki-users] Problem with deleted user - not fully deleted?

Hi, I can say for certain that the only thing which makes the user a part of
the wiki is the document XWiki.$username and it's contained object.
If that document is gone then there is no user. Of course that is dependent
on using the default authenticator.
If you are using a custom authenticator which still lets the user
authenticate then XWiki has no way of knowing that they don't exist, your
authenticator says they do.

What I can say is there is no users table in the database.

I hope this helps.

Caleb

On 06/02/2011 01:52 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 Well, it's good to know I'm not the only one.  Hopefully someone has 
 an idea and can be helpful.
 
 Lenny
 
 
 
 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Kevin P. Foote
 Sent: Thursday, June 02, 2011 12:50 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] Problem with deleted user - not fully deleted?
 
 
 Lenny,
 
 I dont have an answer for you .. However, I have witnessed similar 
 behavior with my test xwiki install. (version 3.0)
 
 I'm using, again, a custom XWikiAuthServiceImpl and have done similar 
 steps to reproduce almost identical outcome.
 
 I too would like to know how to _fully_ remove the problem user from 
 the database. Either by a) removal within XWiki, b) SQL calls to the
database.
 
 
 Note: as mentioned above this is on my test install of xwiki so I have 
 not dedicated too much time to further exploring the issue.
 
 --
 thanks
   kevin.foote
 
 On Wed, 1 Jun 2011, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 
 - Bumping this because I still haven't found an answer on my own.  
 - Anyone have any ideas that could help?
 - 
 - Lenny
 - 
 - -Original Message-
 - From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 - Behalf Of Scardino,Leonard R Jr ERDC-ITL-MS Contractor
 - Sent: Wednesday, May 25, 2011 3:55 PM
 - To: XWiki Users
 - Subject: [xwiki-users] Problem with deleted user - not fully deleted?
 - 
 - version=2.7.33656
 - 
 - Ok, so I have a custom XWikiAuthServiceImpl login that after 
 - authenticating via a smart card looks up a user from a database and
 creates a xwiki user.
 - To verify it was working after some changes, I deleted a user that 
 - previously could log in fine, and then had them try to log in again.
 - They got a screen with no skin applied and an error You are not 
 - allowed to view this document or perform this action.  I did the 
 - same for a different user, and they had no trouble at all, with 
 - their user
 being created again just fine.
 - 
 - I looked in the admin console, and the user with the problem is not
 listed.
 - So I tried creating the user with the problem by hand in the Admin 
 - console, but it claims the user already exists.
 - 
 - Also, I have an output line in my extended XWikiAuthServiceImpl 
 - code that tells me that it made it to that point.  Right after it 
 - is an
 exception:
 - org.xwiki.velocity.XWikiVelocityException: Failed to evaluate 
 - content with id [/templates/xwikivars.vm]  I can't be sure it's 
 - related,
 but seems to be.
 - 
 - Is there perhaps lingering user info in the database for this user?  
 - If so, how do I get rid of it?  Or is it something else entirely?
 - 
 - Thanks for any help.
 - 
 - Lenny
 - ___
 - 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] Problem with deleted user - not fully deleted?

2011-06-02 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Well, it's good to know I'm not the only one.  Hopefully someone has an idea
and can be helpful.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Kevin P. Foote
Sent: Thursday, June 02, 2011 12:50 PM
To: XWiki Users
Subject: Re: [xwiki-users] Problem with deleted user - not fully deleted?


Lenny, 

I dont have an answer for you .. However, I have witnessed similar behavior
with my test xwiki install. (version 3.0)

I'm using, again, a custom XWikiAuthServiceImpl and have done similar steps
to reproduce almost identical outcome.

I too would like to know how to _fully_ remove the problem user from the
database. Either by a) removal within XWiki, b) SQL calls to the database.


Note: as mentioned above this is on my test install of xwiki so I have not
dedicated too much time to further exploring the issue.

--
thanks
  kevin.foote

On Wed, 1 Jun 2011, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:

- Bumping this because I still haven't found an answer on my own.  
- Anyone have any ideas that could help?
- 
- Lenny
- 
- -Original Message-
- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
- Behalf Of Scardino,Leonard R Jr ERDC-ITL-MS Contractor
- Sent: Wednesday, May 25, 2011 3:55 PM
- To: XWiki Users
- Subject: [xwiki-users] Problem with deleted user - not fully deleted?
- 
- version=2.7.33656
- 
- Ok, so I have a custom XWikiAuthServiceImpl login that after 
- authenticating via a smart card looks up a user from a database and
creates a xwiki user.
- To verify it was working after some changes, I deleted a user that 
- previously could log in fine, and then had them try to log in again.  
- They got a screen with no skin applied and an error You are not 
- allowed to view this document or perform this action.  I did the 
- same for a different user, and they had no trouble at all, with their user
being created again just fine.
- 
- I looked in the admin console, and the user with the problem is not
listed.
- So I tried creating the user with the problem by hand in the Admin 
- console, but it claims the user already exists.
- 
- Also, I have an output line in my extended XWikiAuthServiceImpl code 
- that tells me that it made it to that point.  Right after it is an
exception:
- org.xwiki.velocity.XWikiVelocityException: Failed to evaluate 
- content with id [/templates/xwikivars.vm]  I can't be sure it's related,
but seems to be.
- 
- Is there perhaps lingering user info in the database for this user?  
- If so, how do I get rid of it?  Or is it something else entirely?
- 
- Thanks for any help.
- 
- Lenny
- ___
- 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] How can I capture an exception that is going tostandard out

2011-06-01 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
(ConversionFilte
r.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha
in.java:188)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha
in.java:188)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFil
ter(SavedRequestRestorerFilter.java:218)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha
in.java:188)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFil
ter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF
ilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha
in.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav
a:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.jav
a:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:
897)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:689)
at java.lang.Thread.run(Thread.java:662)

2. log4j file from WEB-INF/classes :

### Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %-30.30c{2} %x -
%m %n

log4j.appender.file=org.apache.log4j.RollingFileAppender
log4j.appender.file.File=xwiki.log
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=50
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d [%t] %-5p %-30.30c{2} %x - %m
%n

### By default everything that is of warning or severity WARN, ERROR or FATAL
is logged both to
### the console and to the xwiki.log file.
#log4j.rootLogger=error, stdout, file
log4j.rootLogger=error, file

### Hibernate logging options
log4j.logger.org.hibernate=error
log4j.logger.org.hibernate.SQL=error
log4j.logger.org.hibernate.type=error
log4j.logger.org.hibernate.ps.PreparedStatementCache=error

### DBCP and POOL logging options
log4j.logger.org.apache.commons.dbcp=error
log4j.logger.org.apache.commons.pool=error

### XWiki logging configuration
log4j.logger.org.xwiki=error
log4j.logger.com.xpn.xwiki=error
log4j.logger.com.xpn.xwiki.render.XWikiRadeoxRenderEngine=error
log4j.logger.com.xpn.xwiki.store.migration=error

### Deactive Struts warnings
log4j.logger.org.apache.struts.util.RequestUtils=error

### Deactivate JGroups warnings
log4j.logger.org.jgroups=error

## Deactive PDF Export CSS Applier warnings
log4j.logger.info.informatica.doc.style.css.dom=error
log4j.logger.org.apache.fop.layoutmgr.inline.ContentLayoutManager=error


3. List of jars from WEB-INF/lib with *logging*, *log4j*, *slf4j*:
commons-logging-1.1.1.jar
commons-logging-api-1.0.4.jar
doxia-logging-api-1.1.3.jar
log4j-1.2.16.jar
slf4j-api-1.5.8.jar
slf4j-log4j12-1.5.8.jar

4. Mods from the standard XWiki WAR file:

Custom XwikiAuthServiceImpl.  This has my custom login code.

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Vincent Massol
Sent: Friday, May 27, 2011 5:57 AM
To: XWiki Users
Subject: Re: [xwiki-users] How can I capture an exception that is going
tostandard out

Hi,

These logs are not on by default normally.

You'll need to show us:

- the exact console logs you get
- your log4J file in WEB-INF/classes
- the list of jars from your WEB-INF/lib directory that matches the patterns:
*logging*, *log4j*, *slf4j*
- tell us what modifications you've brought from the standard XWiki WAR file

Thanks
-Vincent

On May 26, 2011, at 10:22 PM, Scardino, Leonard R Jr ERDC-ITL-MS

[xwiki-users] How can I capture an exception that is going to standard out

2011-05-26 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, I have an exception java.sql.SQLException:
org.apache.commons.dbcp.PoolablePreparedStatement... that is making it to
Tomcat's standard out log (tomcat5-stdout.2011-05-26.log).  I've tried
everything I can think of in the log4j.properties file to get this exception
to either not show up at all or log to a different file.  This exception does
not have any formatting like is specified in the log4j.properties file.  So I
don't think it's being logged, so much as just finally falling through and
going to stdout.

I've spent all dang day trying to find a way to keep this exception from
filling my logs, or to figure out why the darn thing is happening in the
first place.  I've put in a ticket for the exception, but it still hasn't
even been picked up yet.  I've emailed this list, but no one was able to
help.

So I just want to log this exception somewhere else so it doesn't complicate
my main log file.  Can someone explain how to do this?  I fancy myself a good
programmer, but of all things this is stumping me.

Thanks,

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


[xwiki-users] Problem with deleted user - not fully deleted?

2011-05-25 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
version=2.7.33656

Ok, so I have a custom XWikiAuthServiceImpl login that after authenticating
via a smart card looks up a user from a database and creates a xwiki user.
To verify it was working after some changes, I deleted a user that previously
could log in fine, and then had them try to log in again.  They got a screen
with no skin applied and an error You are not allowed to view this document
or perform this action.  I did the same for a different user, and they had
no trouble at all, with their user being created again just fine.

I looked in the admin console, and the user with the problem is not listed.
So I tried creating the user with the problem by hand in the Admin console,
but it claims the user already exists.

Also, I have an output line in my extended XWikiAuthServiceImpl code that
tells me that it made it to that point.  Right after it is an exception:
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with
id [/templates/xwikivars.vm]  I can't be sure it's related, but seems to be.

Is there perhaps lingering user info in the database for this user?  If so,
how do I get rid of it?  Or is it something else entirely?

Thanks for any help.

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


[xwiki-users] X509Certificate is null

2011-05-18 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Xwiki version: 2.7.33656

Ok, so I have a different webapp running on the same instance of Tomcat as
Xwiki, and I'm able to make a
getAttribute(javax.servlet.request.X509Certificate) call and am able to get
the clients certificates.  However, in my custom login for Xwiki when I try
the same thing, it just returns null.  I've also tried creating a JSP in the
Xwiki webapp that does nothing but call
request.getAttribute(javax.servlet.request.X509Certificate) and it still
returns null.

Anyone have any idea why this would be the case?  As far as I can tell I have
Tomcat configured correctly as I'm able to get the clients certs in a
different webapp.

Is Xwiki pulling this attribute and storing it elsewhere?  Or is this perhaps
a struts issue?

Any help would be greatly appreciated.  Unfortunately I've been given a short
deadline on this.

Thanks,

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


Re: [xwiki-users] X509Certificate is null

2011-05-18 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Thanks for the reply.

Unfortunately I've tried that and I'm still not getting anything back.

My current track for making this work is using the Cryptographic Module which
seems to have a $services.crypto.x509.certFromPEM() that works in a velocity
template.  However, I need this for login purposes, so I need to know how to
get that $services variable in my custom AuthServiceImpl.  This may not work
at all, but it seems like the most likely path to take.

Still open for more suggestions though.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Caleb James DeLisle
Sent: Wednesday, May 18, 2011 11:36 AM
To: XWiki Users
Subject: Re: [xwiki-users] X509Certificate is null

Hi,
Client certs sounds like a neat project.
When you are using scripting such as {{groovy}}, the request variable will
be set to this:
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki
-platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiServletRequest.java
That is a wrapper around the actual HttpServletRequest but it appears that
getAttribute() passes directly through.
If you want to use the real servlet request so you can test better, you can
call
getHttpServletRequest() then use that.

Good luck,

Caleb

On 05/18/2011 11:38 AM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 Xwiki version: 2.7.33656
 
 Ok, so I have a different webapp running on the same instance of 
 Tomcat as Xwiki, and I'm able to make a
 getAttribute(javax.servlet.request.X509Certificate) call and am able 
 to get the clients certificates.  However, in my custom login for 
 Xwiki when I try the same thing, it just returns null.  I've also 
 tried creating a JSP in the Xwiki webapp that does nothing but call
 request.getAttribute(javax.servlet.request.X509Certificate) and it 
 still returns null.
 
 Anyone have any idea why this would be the case?  As far as I can tell 
 I have Tomcat configured correctly as I'm able to get the clients 
 certs in a different webapp.
 
 Is Xwiki pulling this attribute and storing it elsewhere?  Or is this 
 perhaps a struts issue?
 
 Any help would be greatly appreciated.  Unfortunately I've been given 
 a short deadline on this.
 
 Thanks,
 
 Lenny
 ___
 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] X509Certificate is null

2011-05-18 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, that is one I will have to remember.  Looks like that will give you
access to a lot of useful things.

However, I now don't think the X509CryptoService will help.  The certFromPEM
expects you to send it the certificate as a string, which at first I didn't
realize.  I'm getting the certificate from a smart card.  In my other webapp,
when I do a request.getAttribute(javax.servlet.request.X509Certificate),
the return value is an array of X509Certificates.  I don't know how to get
that in Xwiki.

So I'm going a different route until I can figure this out because of my time
crunch.  It's convoluted, and involves using the other webapp that does let
me grab the certificates to do the authentication, then sending the info back
to Xwiki so I can do the login.  It's a terrible solution versus doing the
authentication in the Xwiki webap, but I don't have days to figure it out.

Thanks again for the help.  If you or anyone else has more suggestions please
bring them on.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Caleb James DeLisle
Sent: Wednesday, May 18, 2011 2:17 PM
To: XWiki Users
Subject: Re: [xwiki-users] X509Certificate is null



On 05/18/2011 01:03 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 Thanks for the reply.
 
 Unfortunately I've tried that and I'm still not getting anything back.
 
 My current track for making this work is using the Cryptographic 
 Module which seems to have a $services.crypto.x509.certFromPEM() that 
 works in a velocity template.  However, I need this for login 
 purposes, so I need to know how to get that $services variable in my custom
AuthServiceImpl.

import org.xwiki.crypto.x509.X509CryptoService;
import com.xpn.xwiki.web.Utils;
X509CryptoService service = Utils.getComponent(X509CryptoService.class);
service.certFromPEM();

That should do the trick.

Caleb

  This may not work
 at all, but it seems like the most likely path to take.
 
 Still open for more suggestions though.
 
 Lenny
 
 
 
 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Caleb James DeLisle
 Sent: Wednesday, May 18, 2011 11:36 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] X509Certificate is null
 
 Hi,
 Client certs sounds like a neat project.
 When you are using scripting such as {{groovy}}, the request 
 variable will be set to this:
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-cor
 e/xwiki 
 -platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiServletRequest.
 java That is a wrapper around the actual HttpServletRequest but it 
 appears that
 getAttribute() passes directly through.
 If you want to use the real servlet request so you can test better, 
 you can call
 getHttpServletRequest() then use that.
 
 Good luck,
 
 Caleb
 
 On 05/18/2011 11:38 AM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
wrote:
 Xwiki version: 2.7.33656

 Ok, so I have a different webapp running on the same instance of 
 Tomcat as Xwiki, and I'm able to make a
 getAttribute(javax.servlet.request.X509Certificate) call and am 
 able to get the clients certificates.  However, in my custom login 
 for Xwiki when I try the same thing, it just returns null.  I've also 
 tried creating a JSP in the Xwiki webapp that does nothing but call
 request.getAttribute(javax.servlet.request.X509Certificate) and it 
 still returns null.

 Anyone have any idea why this would be the case?  As far as I can 
 tell I have Tomcat configured correctly as I'm able to get the 
 clients certs in a different webapp.

 Is Xwiki pulling this attribute and storing it elsewhere?  Or is this 
 perhaps a struts issue?

 Any help would be greatly appreciated.  Unfortunately I've been given 
 a short deadline on this.

 Thanks,

 Lenny
 ___
 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] X509Certificate is null

2011-05-18 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, I believe I have figured it out, and I must say it was around the world
to do so.

It turns out the way you get the server to ask the browser for the clients
certificates is to set a directive in Apache SSLVerifyClient require.  I am
working on code that was created by others before me, so I stupidly assumed
it was setup correctly, and it wasn't.  So problem solved.

Thanks for all that tried to help.

Lenny




-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Scardino,Leonard R Jr ERDC-ITL-MS Contractor
Sent: Wednesday, May 18, 2011 2:21 PM
To: XWiki Users
Subject: Re: [xwiki-users] X509Certificate is null

Ok, that is one I will have to remember.  Looks like that will give you
access to a lot of useful things.

However, I now don't think the X509CryptoService will help.  The certFromPEM
expects you to send it the certificate as a string, which at first I didn't
realize.  I'm getting the certificate from a smart card.  In my other webapp,
when I do a request.getAttribute(javax.servlet.request.X509Certificate),
the return value is an array of X509Certificates.  I don't know how to get
that in Xwiki.

So I'm going a different route until I can figure this out because of my time
crunch.  It's convoluted, and involves using the other webapp that does let
me grab the certificates to do the authentication, then sending the info back
to Xwiki so I can do the login.  It's a terrible solution versus doing the
authentication in the Xwiki webap, but I don't have days to figure it out.

Thanks again for the help.  If you or anyone else has more suggestions please
bring them on.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Caleb James DeLisle
Sent: Wednesday, May 18, 2011 2:17 PM
To: XWiki Users
Subject: Re: [xwiki-users] X509Certificate is null



On 05/18/2011 01:03 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 Thanks for the reply.
 
 Unfortunately I've tried that and I'm still not getting anything back.
 
 My current track for making this work is using the Cryptographic 
 Module which seems to have a $services.crypto.x509.certFromPEM() that 
 works in a velocity template.  However, I need this for login 
 purposes, so I need to know how to get that $services variable in my 
 custom
AuthServiceImpl.

import org.xwiki.crypto.x509.X509CryptoService;
import com.xpn.xwiki.web.Utils;
X509CryptoService service = Utils.getComponent(X509CryptoService.class);
service.certFromPEM();

That should do the trick.

Caleb

  This may not work
 at all, but it seems like the most likely path to take.
 
 Still open for more suggestions though.
 
 Lenny
 
 
 
 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Caleb James DeLisle
 Sent: Wednesday, May 18, 2011 11:36 AM
 To: XWiki Users
 Subject: Re: [xwiki-users] X509Certificate is null
 
 Hi,
 Client certs sounds like a neat project.
 When you are using scripting such as {{groovy}}, the request 
 variable will be set to this:
 https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-cor
 e/xwiki
 -platform-oldcore/src/main/java/com/xpn/xwiki/web/XWikiServletRequest.
 java That is a wrapper around the actual HttpServletRequest but it 
 appears that
 getAttribute() passes directly through.
 If you want to use the real servlet request so you can test better, 
 you can call
 getHttpServletRequest() then use that.
 
 Good luck,
 
 Caleb
 
 On 05/18/2011 11:38 AM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
wrote:
 Xwiki version: 2.7.33656

 Ok, so I have a different webapp running on the same instance of 
 Tomcat as Xwiki, and I'm able to make a
 getAttribute(javax.servlet.request.X509Certificate) call and am 
 able to get the clients certificates.  However, in my custom login 
 for Xwiki when I try the same thing, it just returns null.  I've also 
 tried creating a JSP in the Xwiki webapp that does nothing but call
 request.getAttribute(javax.servlet.request.X509Certificate) and it 
 still returns null.

 Anyone have any idea why this would be the case?  As far as I can 
 tell I have Tomcat configured correctly as I'm able to get the 
 clients certs in a different webapp.

 Is Xwiki pulling this attribute and storing it elsewhere?  Or is this 
 perhaps a struts issue?

 Any help would be greatly appreciated.  Unfortunately I've been given 
 a short deadline on this.

 Thanks,

 Lenny
 ___
 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

[xwiki-users] Bulletin board app modification question

2011-04-21 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I've modified the bulletin board app by adding an edit link to
BBCode.TopicClassSheet (between Quote and Delete) that links to
$doc.getURL(edit,
editor=objectamp;classname=BBCode.PostClassamp;object=$item.number).
This gives me the ability to edit a post by linking to the object editor for
that post.  But the object editor isn't very user friendly.

I noticed towards the top of BBCode.TopicClassSheet, the context.action is
checked to see if its inline.  This determines if a new thread is being
created, and does what is necessary to create it.

I'd like to change the edit link to point back to BBCode.TopicClassSheet but
provide a different custom action.  This way I could check for that action
(say for instance postEdit) and instead of providing the post as is,
provide a form that lets me edit the object.

My problem is, I don't know how to create a link to do this.  I've tried some
of my guesses, but it didn't work.

Can someone tell me how to (within BBCode.TopicClassSheet) create a link to
BBCode.TopicClassSheet but with a different custom action that would allow me
to change the post from just a diplay to a form that allows the object to be
edited?

Hope that question makes sense.

Thanks,

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


[xwiki-users] Belletin Board Application - Email users

2011-04-19 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I'd like to add the functionality of emailing users who post to a thread that
a new post has been created.  I have no idea of the level of complexity of
this is, but I would greatly appreciate it if someone could at least point me
to where I would need to add the code.  I've looked at
BBCode.TopicClassSheet, which has the form for submitting a new post, but I
get stumped from there.  The action for the form is $doc.getURL(ojbectadd)
which returns a value of /xwiki/bin/objectadd/BBCode/TopicClassSheet.  I'm
just not sure how to get to the objectadd so it can be edited.

Any help is much appreciated.

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


[xwiki-users] xwiki BulletinBoard - Deprecated usage of getter [com.xpn.xwiki.api.XWiki.getArrayList]

2011-02-07 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, I'm not sure what happened, but previously I was able to create a new
Topic and post to that topic.  Now, even as an admin, when I try to create a
new Topic I get messages like the following in the Tomcat stdout log:

WARN  internal.DefaultVelocityEngine  - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in xwiki:BulletinBoard.CTAs@126,29 
WARN  internal.DefaultVelocityEngine  - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in
xwiki:BulletinBoard.TestCategory@126,29

I had also gotten a similar message when I tried to reply to a post in a
topic I had already created, but I forgot to capture the message right after
it happened, and so I'm not sure which of the messages in the log came from
that.  I also deleted that topic trying to see if I could create another to
fix the problem, but no dice.

I would have thought this might have come from using a newer version of XWiki
than BulletinBoard expects, but I don't see any documentation saying that it
needs an older version, and I'm pretty sure I installed this plugin after I
upgraded to 2.7.

Can anyone give me a hand here?  I'm working on a tight deadline, and had
this working before.  I need it working again quickly.

Thanks,

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


Re: [xwiki-users] xwiki BulletinBoard - Deprecated usage of getter[com.xpn.xwiki.api.XWiki.getArrayList]

2011-02-07 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, quick update.  I suddenly was able to create a new topic.  The difference
is whether or not when I filled in the title of the topic if I hit enter, or
clicked the Add this topic.  In other words, I click the Add a new
topic... link, the Title of your topic box appears with the Add this
topic button.  If I put something in the text box and hit the enter key, I
get the below warnings.  If I instead click the button, it works.

I really wish I had time to delve into the code and figure this out but I
don't.  Anyone have any idea why I would be seeing this behavior?

Thanks,

Lenny




-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Scardino,Leonard R Jr ERDC-ITL-MS Contractor
Sent: Monday, February 07, 2011 3:32 PM
To: XWiki Users
Subject: [xwiki-users] xwiki BulletinBoard - Deprecated usage of
getter[com.xpn.xwiki.api.XWiki.getArrayList]

Ok, I'm not sure what happened, but previously I was able to create a new
Topic and post to that topic.  Now, even as an admin, when I try to create a
new Topic I get messages like the following in the Tomcat stdout log:

WARN  internal.DefaultVelocityEngine  - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in xwiki:BulletinBoard.CTAs@126,29
WARN  internal.DefaultVelocityEngine  - Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList] in
xwiki:BulletinBoard.TestCategory@126,29

I had also gotten a similar message when I tried to reply to a post in a
topic I had already created, but I forgot to capture the message right after
it happened, and so I'm not sure which of the messages in the log came from
that.  I also deleted that topic trying to see if I could create another to
fix the problem, but no dice.

I would have thought this might have come from using a newer version of XWiki
than BulletinBoard expects, but I don't see any documentation saying that it
needs an older version, and I'm pretty sure I installed this plugin after I
upgraded to 2.7.

Can anyone give me a hand here?  I'm working on a tight deadline, and had
this working before.  I need it working again quickly.

Thanks,

Lenny
___
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] xwiki BulletinBoard - Deprecated usage ofgetter[com.xpn.xwiki.api.XWiki.getArrayList]

2011-02-07 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Correct, that is exactly what is happening.  I was having trouble finding any
code that did the .getArrayList().  Guess I just need to look harder.

As for the button, for whatever reason it didn't occur to me that it was
firing off some javascript.  Guess it's because I try to avoid javascript
unless I have to use it.  I'll try to take a look and see what is happening
(or not happening more precisely).

Thanks for the help thus far.  If anyone figures it out before me, or knows
immediately what the issue is, please let me know.  It's one of a dozen
things I have to work on over the next few days.

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Caleb James DeLisle
Sent: Monday, February 07, 2011 4:11 PM
To: XWiki Users
Subject: Re: [xwiki-users] xwiki BulletinBoard - Deprecated usage
ofgetter[com.xpn.xwiki.api.XWiki.getArrayList]

I can answer the Deprecated usage of getter
[com.xpn.xwiki.api.XWiki.getArrayList]
This is simply because our core develops faster than we can keep all
applications up to date.
Somebody will have to find the line which says #set($someVariable =
$xwiki.getArrayList()) and replace it with #set($someVariable = []) the code
should work ok despite the deprecation.

I have repeated your problem with topics, pressing enter reloads the page but
doesn't add the topic as required which is not only inconvenient but
misleading. It looks like there is some javascript which depends on the
submit button being clicked.


Caleb


On 02/07/2011 04:46 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 Ok, quick update.  I suddenly was able to create a new topic.  The 
 difference is whether or not when I filled in the title of the topic 
 if I hit enter, or clicked the Add this topic.  In other words, I 
 click the Add a new topic... link, the Title of your topic box 
 appears with the Add this topic button.  If I put something in the 
 text box and hit the enter key, I get the below warnings.  If I instead
click the button, it works.
 
 I really wish I had time to delve into the code and figure this out 
 but I don't.  Anyone have any idea why I would be seeing this behavior?
 
 Thanks,
 
 Lenny
 
 
 
 
 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Scardino,Leonard R Jr ERDC-ITL-MS Contractor
 Sent: Monday, February 07, 2011 3:32 PM
 To: XWiki Users
 Subject: [xwiki-users] xwiki BulletinBoard - Deprecated usage of 
 getter[com.xpn.xwiki.api.XWiki.getArrayList]
 
 Ok, I'm not sure what happened, but previously I was able to create a 
 new Topic and post to that topic.  Now, even as an admin, when I try 
 to create a new Topic I get messages like the following in the Tomcat
stdout log:
 
 WARN  internal.DefaultVelocityEngine  - Deprecated usage of getter 
 [com.xpn.xwiki.api.XWiki.getArrayList] in 
 xwiki:BulletinBoard.CTAs@126,29 WARN  internal.DefaultVelocityEngine  
 - Deprecated usage of getter [com.xpn.xwiki.api.XWiki.getArrayList] in
 xwiki:BulletinBoard.TestCategory@126,29
 
 I had also gotten a similar message when I tried to reply to a post in 
 a topic I had already created, but I forgot to capture the message 
 right after it happened, and so I'm not sure which of the messages in 
 the log came from that.  I also deleted that topic trying to see if I 
 could create another to fix the problem, but no dice.
 
 I would have thought this might have come from using a newer version 
 of XWiki than BulletinBoard expects, but I don't see any documentation 
 saying that it needs an older version, and I'm pretty sure I installed 
 this plugin after I upgraded to 2.7.
 
 Can anyone give me a hand here?  I'm working on a tight deadline, and 
 had this working before.  I need it working again quickly.
 
 Thanks,
 
 Lenny
 ___
 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] Doing a File Exchange App

2011-01-26 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Ok, so I've talked to my people, and a limit of 20 megabytes isn't going to
cut it.  Looks like users will be uploading how-to video's and PowerPoints
that will exceed 20 megabytes.

I'm going to start researching alternatives, but I thought I'd ask this group
if you had any suggestions on how to proceed.  It's looking to me like I'll
need another system, but I'm not certain what would be best.  Any
suggestions?

Lenny




-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Sergiu Dumitriu
Sent: Monday, January 24, 2011 6:08 PM
To: XWiki Users
Subject: Re: [xwiki-users] Doing a File Exchange App

On 01/24/2011 11:10 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 I'm being asked to do a File Exchange application in XWiki.  Basically 
 giving the users the ability to upload and download files for each 
 others use.  My first thought was to simply use different pages for 
 collections and have people use the built in file attachment stuff.  
 However, I'm being told that isn't intuitive enough, so I'm looking to 
 do some sort of FTP like thing where paths can be created and files 
 uploaded to those paths to be later downloaded by others.

 I guess my question is, does anyone know of an existing app that does 
 this, or am I going to have to create this myself?

You can use WebDAV to access the wiki.
http://platform.xwiki.org/xwiki/bin/Features/WebDAV

You can do some custom UI on top of the basic attachment feature.

But note that the current attachment storage is not that memory efficient, so
it won't work well if the attachments are big. If you have attachments less
than 10-20 megabytes, that's OK, but bigger than that requires a different
approach. This will improve in the near future (3.0 / 3.1 hopefully).

Another alternative is to implement the file exchange using another system,
maybe even plain old FTP, and only provide an UI for it in XWiki. How exactly
this can be done depends on the service you want to use and what remote
access APIs it provides.

--
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
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] Doing a File Exchange App

2011-01-26 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Unfortunately they want to demo the wiki pretty soon.  It would depend on how
long before the next release.  My guess is, I don't have time.

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Paul Libbrecht
Sent: Wednesday, January 26, 2011 1:30 PM
To: XWiki Users
Subject: Re: [xwiki-users] Doing a File Exchange App

When are you willing to release?
The file-system-storage would avoid the 20 Mb limit I think but it'll only be
in beta or alpha at next release.

paul


Le 26 janv. 2011 à 20:22, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a
écrit :

 Ok, so I've talked to my people, and a limit of 20 megabytes isn't 
 going to cut it.  Looks like users will be uploading how-to video's 
 and PowerPoints that will exceed 20 megabytes.
 
 I'm going to start researching alternatives, but I thought I'd ask 
 this group if you had any suggestions on how to proceed.  It's looking 
 to me like I'll need another system, but I'm not certain what would be 
 best.  Any suggestions?
 
 Lenny
 
 
 
 
 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On 
 Behalf Of Sergiu Dumitriu
 Sent: Monday, January 24, 2011 6:08 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] Doing a File Exchange App
 
 On 01/24/2011 11:10 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
wrote:
 I'm being asked to do a File Exchange application in XWiki.  
 Basically giving the users the ability to upload and download files 
 for each others use.  My first thought was to simply use different 
 pages for collections and have people use the built in file attachment
stuff.
 However, I'm being told that isn't intuitive enough, so I'm looking 
 to do some sort of FTP like thing where paths can be created and 
 files uploaded to those paths to be later downloaded by others.
 
 I guess my question is, does anyone know of an existing app that does 
 this, or am I going to have to create this myself?
 
 You can use WebDAV to access the wiki.
 http://platform.xwiki.org/xwiki/bin/Features/WebDAV
 
 You can do some custom UI on top of the basic attachment feature.
 
 But note that the current attachment storage is not that memory 
 efficient, so it won't work well if the attachments are big. If you 
 have attachments less than 10-20 megabytes, that's OK, but bigger than 
 that requires a different approach. This will improve in the near future
(3.0 / 3.1 hopefully).
 
 Another alternative is to implement the file exchange using another 
 system, maybe even plain old FTP, and only provide an UI for it in 
 XWiki. How exactly this can be done depends on the service you want to 
 use and what remote access APIs it provides.
 
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 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] Doing a File Exchange App

2011-01-25 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Sorry, I realize the way I worded it I wasn't very clear.  I do want to do
this within XWiki, not a separate application.  Basically I'm curious if
there is an existing XWiki app that would work for me that I didn't see
perusing the extensions page, or some way within XWiki already that would
accomplish this.  So any suggestions along that lines would be most helpful.

I know I can write my own if necessary, but I'd like to not have to re-invent
the wheel if possible.

Thanks,

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Paul Libbrecht
Sent: Monday, January 24, 2011 5:32 PM
To: XWiki Users
Subject: Re: [xwiki-users] Doing a File Exchange App

Outside of XWiki?
I doubt it's as intuitive as XWiki but jFM did a good job for us.
  http://jfm.dev.java.net/

paul


Le 24 janv. 2011 à 23:10, Scardino, Leonard R Jr ERDC-ITL-MS Contractor a
écrit :

 I'm being asked to do a File Exchange application in XWiki.  Basically 
 giving the users the ability to upload and download files for each 
 others use.  My first thought was to simply use different pages for 
 collections and have people use the built in file attachment stuff.  
 However, I'm being told that isn't intuitive enough, so I'm looking to 
 do some sort of FTP like thing where paths can be created and files 
 uploaded to those paths to be later downloaded by others.
 
 I guess my question is, does anyone know of an existing app that does 
 this, or am I going to have to create this myself?
 
 Thanks,
 
 Lenny
 ___
 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] Doing a File Exchange App

2011-01-24 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I'm being asked to do a File Exchange application in XWiki.  Basically giving
the users the ability to upload and download files for each others use.  My
first thought was to simply use different pages for collections and have
people use the built in file attachment stuff.  However, I'm being told that
isn't intuitive enough, so I'm looking to do some sort of FTP like thing
where paths can be created and files uploaded to those paths to be later
downloaded by others.

I guess my question is, does anyone know of an existing app that does this,
or am I going to have to create this myself?

Thanks,

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


Re: [xwiki-users] Stop the edit/export/more actions bar from moving

2010-12-16 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I'll give that a try today.  Thank you very much for your help.

Lenny

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Ecaterina Moraru (Valica)
Sent: Thursday, December 16, 2010 4:02 AM
To: XWiki Users
Subject: Re: [xwiki-users] Stop the edit/export/more actions bar from moving

Hi,

The feature was added in
XWIKI-5468 http://jira.xwiki.org/jira/browse/XWIKI-5468: Keep the content
menu visible when scrolling down

You can see the changes for the
/platform/web/trunk/standard/src/main/webapp/resources/js/xwiki/xwiki.js
at
https://fisheye2.atlassian.com/changelog/xwiki?cs=30869

I didn't understood exactly what is the problem: the fact that is moving or
the width.
You could change the added js ... or just override with CSS the properties
added, like:

#contentmenu {
left: auto !important;
position: relative !important;
top: auto !important;
}

This will make the menu not to move with the view, but will keep the width.

Thanks,
Caty


On Wed, Dec 15, 2010 at 21:08, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
leonard.r.scard...@usace.army.mil wrote:

 I don't consider myself an expert at CSS, but I can usually manage 
 anything I need.  However, I cannot figure out how to stop the 
 contentmenu bar (has the edit, export, and more actions dropdown 
 menus) from staying put over the content area as I scroll down the 
 page.

 I'm sure this is probably ridiculously easy to change and is something 
 I'm overlooking, but I'd appreciate the help.

 If anyone wonders why I want to in the first place, I'm trying to 
 decrease the width of the wiki to the same size as our other webapp 
 (to make them look the same), and when I do, the bar skews over out of 
 place when you scroll down.  We don't need the bar to stay in place as 
 a person scrolls anyway, so I'd like to just turn that off.

 Thanks for any help,

 Lenny
 ___
 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] Stop the edit/export/more actions bar from moving

2010-12-15 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I don't consider myself an expert at CSS, but I can usually manage anything I
need.  However, I cannot figure out how to stop the contentmenu bar (has the
edit, export, and more actions dropdown menus) from staying put over the
content area as I scroll down the page.

I'm sure this is probably ridiculously easy to change and is something I'm
overlooking, but I'd appreciate the help.

If anyone wonders why I want to in the first place, I'm trying to decrease
the width of the wiki to the same size as our other webapp (to make them look
the same), and when I do, the bar skews over out of place when you scroll
down.  We don't need the bar to stay in place as a person scrolls anyway, so
I'd like to just turn that off.

Thanks for any help,

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


Re: [xwiki-users] java.sql.SQLException PoolablePreparedStatment

2010-12-10 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Doing a bump if you will.  Does anyone know why I'm getting the below?

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Scardino,Leonard R Jr ERDC-ITL-MS Contractor
Sent: Thursday, December 09, 2010 5:05 PM
To: XWiki Users
Subject: [xwiki-users] java.sql.SQLException PoolablePreparedStatment

I have a new instance of XWiki running on Tomcat 5.5 / Mysql Server 5.1.

The wiki appears to be running fine, no errors being shown to the user.
However, in the tomcat log I'm getting a bunch of java.sql.SQLExceptions like
the following:

java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with
address: com.mysql.jdbc.preparedstatem...@1f07f48: insert into
activitystream_events (ase_requestid, ase_stream, ase_date, ase_priority,
ase_type, ase_application, ase_user, ase_wiki, ase_space, ase_page, ase_url,
ase_title, ase_body, ase_version, ase_param1, ase_param2, ase_param3,
ase_param4, ase_param5, ase_eventid) values (** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **) is closed.

and :

java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with
address: com.mysql.jdbc.preparedstatem...@cbe525: update xwikiproperties set
XWP_CLASSTYPE=** NOT SPECIFIED ** where XWP_ID=** NOT SPECIFIED ** and
XWP_NAME=** NOT SPECIFIED ** is closed.



I looked around the archive and didn't see anything.  I'm concerned that this
is important even though it doesn't seem to be affecting the usability of the
XWiki.

Can anyone tell me what the deal is?  

Thanks,

Lenny
___
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] java.sql.SQLException PoolablePreparedStatment

2010-12-09 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I have a new instance of XWiki running on Tomcat 5.5 / Mysql Server 5.1.

The wiki appears to be running fine, no errors being shown to the user.
However, in the tomcat log I'm getting a bunch of java.sql.SQLExceptions like
the following:

java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with
address: com.mysql.jdbc.preparedstatem...@1f07f48: insert into
activitystream_events (ase_requestid, ase_stream, ase_date, ase_priority,
ase_type, ase_application, ase_user, ase_wiki, ase_space, ase_page, ase_url,
ase_title, ase_body, ase_version, ase_param1, ase_param2, ase_param3,
ase_param4, ase_param5, ase_eventid) values (** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT
SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **, ** NOT SPECIFIED **,
** NOT SPECIFIED **) is closed.

and :

java.sql.SQLException: org.apache.commons.dbcp.PoolablePreparedStatement with
address: com.mysql.jdbc.preparedstatem...@cbe525: update xwikiproperties set
XWP_CLASSTYPE=** NOT SPECIFIED ** where XWP_ID=** NOT SPECIFIED ** and
XWP_NAME=** NOT SPECIFIED ** is closed.



I looked around the archive and didn't see anything.  I'm concerned that this
is important even though it doesn't seem to be affecting the usability of the
XWiki.

Can anyone tell me what the deal is?  

Thanks,

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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-30 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Just wanted to say that this was EXTREMELY helpful.  Got my authenticator
working today.  Sweet.  Thanks for the help.

Lenny


-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Thomas Mortagne
Sent: Thursday, November 25, 2010 2:22 AM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action

http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
so/
seems a bid minimalistic

You can find working authenticator example on
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/ and
especially some code you can reuse like
http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/authenticators/xwiki-authe
ntication-puma/src/main/java/com/xwiki/authentication/AbstractAuthServiceImpl
.java

On Wed, Nov 24, 2010 at 22:42, Scardino, Leonard R Jr ERDC-ITL-MS Contractor
leonard.r.scard...@usace.army.mil wrote:
 I've been searching the archive, but coming up short here.

 I'm trying to get custom authentication going on XWiki Enterprise 2.6.

 I've successfully implemented the XWikiAuthService by extending 
 XwikiAuthServiceImpl as suggested here :
 http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
 racle-s
 so/

 I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

 I'm able to automatically create a new user in xwiki using the 
 XWiki.createEmptyUser method, and I get logged in.

 However, when I get in as that user all I get is  Error    You are 
 not allowed to view this document or perform this action.  No matter 
 what I try to look at, including the personal profile.

 Can anyone tell me what I'm missing here?

 The XWiki documentation says that you can implement your own right 
 management service, but it doesn't say that is necessary.  Is it?

 Thanks,

 Lenny
 ___
 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


[xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I've been searching the archive, but coming up short here.

I'm trying to get custom authentication going on XWiki Enterprise 2.6.

I've successfully implemented the XWikiAuthService by extending
XwikiAuthServiceImpl as suggested here :
http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-oracle-s
so/

I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

I'm able to automatically create a new user in xwiki using the
XWiki.createEmptyUser method, and I get logged in.

However, when I get in as that user all I get is  ErrorYou are not
allowed to view this document or perform this action.  No matter what I try
to look at, including the personal profile.

Can anyone tell me what I'm missing here?  

The XWiki documentation says that you can implement your own right
management service, but it doesn't say that is necessary.  Is it?

Thanks,

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


Re: [xwiki-users] Custom Authentication - Error: You are not allowed to view this document or perform this action

2010-11-24 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
That's what I was thinking as well, though I don't get logged out, but I
can't see my users profile.  I removed the config line and logged in as the
administrator with the default login.  The user I created seemed to have the
correct permissions.  Also when not using my custom authenticator, I was able
to login as this new user and everything was fine.  But the minute I change
the config back to my authenticator I get the Error  You are not allowed to
view... error.

It does sound like a permissions thing, but I virtually have a fresh install
of XWiki, so I haven't changed any of the permissions or groups or anything.
So I would have thought the XWiki.createEmptyUser method would set my user up
as it needed to be.  Or I would have expected something in the documentation
to tell me to do something myself.

Any other ideas after knowing the above?

Lenny

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Sergiu Dumitriu
Sent: Wednesday, November 24, 2010 3:54 PM
To: XWiki Users
Subject: Re: [xwiki-users] Custom Authentication - Error: You are not allowed
to view this document or perform this action

On 11/24/2010 10:42 PM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 I've been searching the archive, but coming up short here.

 I'm trying to get custom authentication going on XWiki Enterprise 2.6.

 I've successfully implemented the XWikiAuthService by extending 
 XwikiAuthServiceImpl as suggested here :
 http://bodez.wordpress.com/2008/10/15/xwiki-user-authentication-with-o
 racle-s
 so/

 I have also added the xwiki.authentication.authclass line to my xwiki.cfg.

 I'm able to automatically create a new user in xwiki using the 
 XWiki.createEmptyUser method, and I get logged in.

 However, when I get in as that user all I get is  ErrorYou are not
 allowed to view this document or perform this action.  No matter what 
 I try to look at, including the personal profile.

 Can anyone tell me what I'm missing here?

 The XWiki documentation says that you can implement your own right 
 management service, but it doesn't say that is necessary.  Is it?

 Thanks,

If you can log in with this user, and you can click on your profile name
displayed in the top-right menu, and you're not logged out immediately after
that, then it's not a user authentication problem, but a rights issue. Make
sure the user is in the requested groups, and he does have the rights to
view/edit documents.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
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] Unknown macro: html after fresh install

2010-11-22 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
Hah, duh.  I have no idea why I didn't think to check the Tomcat logs.  Maybe
just a long day.

Well, I'll continue to research this on my own, but since I've already put
out this email on the mailing list, I'll continue it.



1. What version of XWiki Enterprise did you install?

XWiki Enterprise 2.5.1.32531


2. Does this happen only with the HTML macro? Are the rest of the macros
(e.g. velocity, groovy, info etc.) working fine?

They seem to be.  I don't see any other boxes other than the ! Unknown
macro: html

3. Are there any exceptions logged when you start the wiki or when you
render a wiki page that includes an HTML macro?

Hah, yes, quite a few.  As I stated before, I'm not sure why it didn't occur
to me to check for this.  I won't list the entire stack trace, but here are
the main exception names.

2010-11-22 09:00:55,636 [https://localhost/xwiki/bin/view/Main/] ERROR
rterVelocityContextInitializer  - Unrecoverable error, office importer will
not be available for velocity scripts. 
org.xwiki.officeimporter.OfficeImporterException: Error while initializing
office importer velocity bridge.
...
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to
lookup component [role = [org.xwiki.officeimporter.OfficeImporter] hint =
[default]]
...
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to
lookup component [role =
[org.xwiki.officeimporter.builder.XHTMLOfficeDocumentBuilder] hint =
[default]]
...
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to
lookup component [role = [org.xwiki.xml.html.HTMLCleaner] hint = [openoffice]
...
Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to
lookup component [role = [org.xwiki.xml.html.HTMLCleaner] hint = [default]]
...
Caused by: java.lang.NullPointerException
at
org.apache.xerces.dom.ElementImpl.reconcileDefaultAttributes(ElementImpl.java
:962)

4. You have xwiki-core-rendering-macro-html-x.y.jar in your WEB-INF/lib
right?

Yes I do.


Thank you very much for your help.  If you have any more suggestions based on
the above, I'll be happy to hear them.  I will of course continue research on
my own now that I know the exceptions.  So if you feel you have done your due
diligence I definitely understand.

Thanks,

Lenny



-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of
Marius Dumitru Florea
Sent: Monday, November 22, 2010 2:19 AM
To: users@xwiki.org
Subject: Re: [xwiki-users] Unknown macro: html after fresh install

Hi Lenny,

On 11/20/2010 12:09 AM, Scardino, Leonard R Jr ERDC-ITL-MS Contractor wrote:
 I'm afraid I've searched as much as I can, and cannot find an answer to
this.


 I just did a fresh install of xwiki on Windows Server 2003, 
 Apache/Tomcat(5.5.28), MySQL Server 5.1.

What version of XWiki Enterprise did you install?

 I'm getting boxes with ! Unknown macro: html.

Does this happen only with the HTML macro? Are the rest of the macros (e.g.
velocity, groovy, info etc.) working fine?


 I've also installed xwiki on my laptop running XP, Tomcat(6.0.26), 
 MySQL Server 5.1, and had no problems.

 Can someone give me an idea of what might be causing this?  I'm a java 
 programmer, so I can get into nuts and bolts if necessary.  Hopefully 
 its not. If I have not provided enough information, please let me know 
 and I'll be happy to expound.

Are there any exceptions logged when you start the wiki or when you render a
wiki page that includes an HTML macro?

You have xwiki-core-rendering-macro-html-x.y.jar in your WEB-INF/lib right?

Hope this helps,
Marius


 Thanks,

 Lenny
 ___
 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] Unknown macro: html after fresh install

2010-11-19 Thread Scardino, Leonard R Jr ERDC-ITL-MS Contractor
I'm afraid I've searched as much as I can, and cannot find an answer to this.

I just did a fresh install of xwiki on Windows Server 2003,
Apache/Tomcat(5.5.28), MySQL Server 5.1.

I'm getting boxes with ! Unknown macro: html.

I've also installed xwiki on my laptop running XP, Tomcat(6.0.26), MySQL
Server 5.1, and had no problems.

Can someone give me an idea of what might be causing this?  I'm a java
programmer, so I can get into nuts and bolts if necessary.  Hopefully its
not. If I have not provided enough information, please let me know and I'll
be happy to expound.

Thanks,

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