[xwiki-users] https

2010-03-31 Thread stefan bachert
Hi,

My wiki has public and protected pages.
The public page may be access with http
However, logon and protected page should access with https only.

Is there a way to config xwiki this way?
Or do I have to run xwiki totally under https?

Stefan Bachert


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] FW: A new Wiki install

2010-03-31 Thread Valdis Vītoliņš
I'm still wondering why people run Java applications on Windows. Running
on Linux is much easier.
Don't get me wrong. In 2001 I did presentation in international
conference recommending Sharepoint as a new powerful tool for
collaboration
and knowledge exchange. But that was looong time ago, and I've switched
to Linux and wikis.

In multinational corporations there is "policy" developed by corporate
headquarters 10 years ago that server could be any but Windows,
though I've seen many "underground/semi official" Linux servers "for
customer projects" and that number is growing.

Xwiki runs on windows but from this mailing list I know how tricky
quirks may happen from time to time,
as developers and most of users don't test it.

Valdis


> I have been testing the stand alone enterprise on a windows x64 server 2003 
> box.(still some config and planning to iron out)
> I am ready to make the leap to the enterprise WAR with the jetty container 
> and SQL 2005 as the DB.
> What I need to know is how using X64 and X32 will affect what I do. What are 
> the limitations or advantages of using  sql server/web OS in X64 or X32.
> My production server is windows server 2003 X32?
> 
> Any suggestions are most welcome.
> Many Thanks
> 
> Clinton
> 
> Clinton Louw / Invision Inc | Systems Engineer
> *: 2160 Satellite Blvd.Suite 225 Duluth, GA 30096
> *: 770-325-0457 | *: 
> clinton.l...@invisioninc.com
> 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users


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


Re: [xwiki-users] https

2010-03-31 Thread Caleb James DeLisle
I think you can check to see if the connection is https using the
HttpServletRequest ($request) in velocity then send a redirect or simply
refuse to display the page.

Caleb

stefan bachert wrote:
> Hi,
> 
> My wiki has public and protected pages.
> The public page may be access with http
> However, logon and protected page should access with https only.
> 
> Is there a way to config xwiki this way?
> Or do I have to run xwiki totally under https?
> 
> Stefan Bachert
> 
> 
> __
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz 
> gegen Massenmails. 
> http://mail.yahoo.com 
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
> 

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


Re: [xwiki-users] https

2010-03-31 Thread 2smart4u
Hi Stefan,

IMHO that's nothing to be configured within XWiki but within the
deployment-dscriptor ("web.xml") within your servlet-container.

Example (snippet):

  
 
Protected Context
  /*
  
  
  
 CONFIDENTIAL
  
   

Cheers

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] I can't attach files to content

2010-03-31 Thread Dean Del Ponte
I've recently migrated from the standalone version to the war version, in
the hopes of making the use of the wiki more permanent.

I'm running xwiki-2.2.4 in tomcat-6.0.24 with MySQL 5.1.  Everything works,
except I am now unable to attach files of any kind.  I receive the following
error.  All help is appreciated.  Thanks!

*** Begin error ***

Notice
A problem occurred while trying to process your request. Please contact the
webmaster if this happens again.


Detailed information:
Error number 3201 in 3: Exception while saving document Web
Documentation.Customer Service Popup Window in AnswerNET
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving
document Web Documentation.Customer Service Popup Window in AnswerNET
Wrapped Exception: Failed to commit or rollback transaction. Root cause []
at
com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:638)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
at
com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1358)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1320)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1315)
at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:114)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)


Wrapped Exception:

org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch
update
at
org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92)
at
org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87)
at
org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(Abst

Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread Dean Del Ponte
Here's another interest line I found in the log file.  Maybe this will help:

ERROR util.JDBCExceptionReporter  - Incorrect string value:
'\xEF\x83\xA0 IT...' for column 'XWR_PATCH' at row 1
ERROR .AbstractFlushingEventListener  - Could not synchronize database state
with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch
update

Thanks again,

Dean Del Ponte

On Wed, Mar 31, 2010 at 8:23 AM, Dean Del Ponte wrote:

> I've recently migrated from the standalone version to the war version, in
> the hopes of making the use of the wiki more permanent.
>
> I'm running xwiki-2.2.4 in tomcat-6.0.24 with MySQL 5.1.  Everything works,
> except I am now unable to attach files of any kind.  I receive the following
> error.  All help is appreciated.  Thanks!
>
> *** Begin error ***
>
> Notice
> A problem occurred while trying to process your request. Please contact the
> webmaster if this happens again.
>
>
> Detailed information:
> Error number 3201 in 3: Exception while saving document Web
> Documentation.Customer Service Popup Window in AnswerNET
> Wrapped Exception: Failed to commit or rollback transaction. Root cause []
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while
> saving document Web Documentation.Customer Service Popup Window in AnswerNET
> Wrapped Exception: Failed to commit or rollback transaction. Root cause []
>  at
> com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:638)
> at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
>  at
> com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1358)
>  at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1320)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1315)
>  at com.xpn.xwiki.web.UploadAction.action(UploadAction.java:114)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:213)
>  at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.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.doPost(ActionServlet.java:432)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:152)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:118)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at
> com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>  at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:619)
>
>
> Wrapped

Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread coldserenity

I receive almost the same error when trying to save the following text



> як думаєте чи є зміст розділяти Resolved на Resolved for Code Review i
> Resolved for QA?
> мається на увазі що після того як щось запрограмовано - воно  обов’язково
> повинно бути віддане на Code Review і тільки після того на QA. 
> 
> Переваги: по-ідеї буде легше розрізняти що потребує Code Review і
> рівномірно розподіляти такі задачі на команду. 
> Недоліки: додатковий формальний крок, по ідеї Code Review має робитися
> зразу - щоби не відтягувати віддачу в Trunk, тому на практиці це буде
> виглядати так: натисли кнопочку в жирі (це призводить до перекидання
> квитка на мене, як розподіляючого кому робити CR) і одразу підходите і
> питаєте, а хто би міг подивитися. З одного боку формальність - з іншого -
> нагадувалка яка дозволить запровадити обовязкове CR на рівні процесу.
> 

the error is 



> Caused by: java.sql.BatchUpdateException: Incorrect string value:
> '\xD1\x8F\xD0\xBA \xD0...' for column 'XWR_PATCH' at row 1
>   at
> com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1669)
>   at
> com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1085)
>   at
> org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
>   at
> org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
>   at
> org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
>   at
> org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
>   ... 70 more
> 

Full stack trace attached in file 
http://n2.nabble.com/file/n4830873/ExceptionWhenSavingText-StackTrace.txt
ExceptionWhenSavingText-StackTrace.txt 
-- 
View this message in context: 
http://n2.nabble.com/I-can-t-attach-files-to-content-tp4830758p4830873.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] I can't attach files to content

2010-03-31 Thread Vincent Massol
Hi,

On Mar 31, 2010, at 3:52 PM, coldserenity wrote:

> 
> I receive almost the same error when trying to save the following text
> 
> 
> 
>> як думаєте чи є зміст розділяти Resolved на Resolved for Code Review i
>> Resolved for QA?
>> мається на увазі що після того як щось запрограмовано - воно  обов’язково
>> повинно бути віддане на Code Review і тільки після того на QA. 
>> 
>> Переваги: по-ідеї буде легше розрізняти що потребує Code Review і
>> рівномірно розподіляти такі задачі на команду. 
>> Недоліки: додатковий формальний крок, по ідеї Code Review має робитися
>> зразу - щоби не відтягувати віддачу в Trunk, тому на практиці це буде
>> виглядати так: натисли кнопочку в жирі (це призводить до перекидання
>> квитка на мене, як розподіляючого кому робити CR) і одразу підходите і
>> питаєте, а хто би міг подивитися. З одного боку формальність - з іншого -
>> нагадувалка яка дозволить запровадити обовязкове CR на рівні процесу.
>> 
> 
> the error is 
> 
> 
> 
>> Caused by: java.sql.BatchUpdateException: Incorrect string value:
>> '\xD1\x8F\xD0\xBA \xD0...' for column 'XWR_PATCH' at row 1
>>  at
>> com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1669)
>>  at
>> com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1085)
>>  at
>> org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
>>  at
>> org.apache.commons.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:294)
>>  at
>> org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
>>  at
>> org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
>>  ... 70 more
>> 
> 
> Full stack trace attached in file 
> http://n2.nabble.com/file/n4830873/ExceptionWhenSavingText-StackTrace.txt
> ExceptionWhenSavingText-StackTrace.txt 

See http://dev.xwiki.org/xwiki/bin/view/IRC/xwikiArchive20100303

Thanks
-Vincent

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


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread 2smart4u
2010/3/31 Vincent Massol :
>
> See http://dev.xwiki.org/xwiki/bin/view/IRC/xwikiArchive20100303
>
> Thanks
> -Vincent
>

wow - a really usefull posting here - to whoch of the 1000+ lines are
you referring to?

anyhow:

2.2.4 was a bug-fix to fix some regressions - I've still not upgraded
from 2.2.2, and when i read those posts, seems that was a pretty good
idea.

now can you confirm that 2.2.4 is stable or ist there a general
problem with attachmenets / utf-8 / etc.?

wondering...

gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread Vincent Massol

On Mar 31, 2010, at 4:01 PM, 2smart4u wrote:

> 2010/3/31 Vincent Massol :
>> 
>> See http://dev.xwiki.org/xwiki/bin/view/IRC/xwikiArchive20100303
>> 
>> Thanks
>> -Vincent
>> 
> 
> wow - a really usefull posting here - to whoch of the 1000+ lines are
> you referring to?

you need to help yourself a bit... 

you got an exception. Try googling it...

-Vincent

> 
> anyhow:
> 
> 2.2.4 was a bug-fix to fix some regressions - I've still not upgraded
> from 2.2.2, and when i read those posts, seems that was a pretty good
> idea.
> 
> now can you confirm that 2.2.4 is stable or ist there a general
> problem with attachmenets / utf-8 / etc.?
> 
> wondering...
> 
> gregor
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread 2smart4u
Vincent,

*I* don't have any exception since I'm still on 2.2.2

My - what I believe simple - question was, if 2.2.4 is stable or if
there are any issue which might be a show-stopper.

So can you give an statement if 2.2.4 has a regression concerning attachements?

Btw, asking auntie Google regarding "xwiki 2.2.4 attachement"... is
giving way too many hits - that's why I'm asking here

TIA

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XML parser for displaying on pages

2010-03-31 Thread Mike Davis

> Message: 6
> Date: Mon, 29 Mar 2010 17:37:30 +0200
> From: Vincent Massol 
> Subject: Re: [xwiki-users] XML parser for displaying on pages
> To: XWiki Users 
> Message-ID: 
> Content-Type: text/plain; charset=us-ascii
> 
> Hi,
> 
> On Mar 29, 2010, at 5:27 PM, Mike Davis wrote:
> 
> > 
> > I want to parse XML attachments to a page and display the data in a table 
> > or list on the page.  Does this functionality exist?  Just checking before 
> > I write my own code.
> 
> So you have attachments which are XML files and you want to parse them and 
> display their content in a wiki table ?
> 
> If so, I'd suggest you use the {{groovy}} macro and use the groovy xml 
> slurper to do the work. You should be able to write this in less than 10 
> lines :)
> 
> http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
> 
> Thanks
> -Vincent

Thanks, got that up and running in only a few minutes!  Now I'd like a way to 
have the user click on one level of the xml hierarchy I display and have it 
expand to show the children of that section (I have the hierarchy iteration 
code, just not the "gui" code).  Something graphically like a macro error (the 
one that says "Failed to execute macro: groovy") and then you click to expand 
and view the content.  

Thanks!
-Mike
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XML parser for displaying on pages

2010-03-31 Thread Guillaume Lerouge
Hi,

On Wed, Mar 31, 2010 at 6:06 PM, Mike Davis  wrote:

>
> > Message: 6
> > Date: Mon, 29 Mar 2010 17:37:30 +0200
> > From: Vincent Massol 
> > Subject: Re: [xwiki-users] XML parser for displaying on pages
> > To: XWiki Users 
> > Message-ID: 
> > Content-Type: text/plain; charset=us-ascii
> >
> > Hi,
> >
> > On Mar 29, 2010, at 5:27 PM, Mike Davis wrote:
> >
> > >
> > > I want to parse XML attachments to a page and display the data in a
> table or list on the page.  Does this functionality exist?  Just checking
> before I write my own code.
> >
> > So you have attachments which are XML files and you want to parse them
> and display their content in a wiki table ?
> >
> > If so, I'd suggest you use the {{groovy}} macro and use the groovy xml
> slurper to do the work. You should be able to write this in less than 10
> lines :)
> >
> > http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
> >
> > Thanks
> > -Vincent
>
> Thanks, got that up and running in only a few minutes!  Now I'd like a way
> to have the user click on one level of the xml hierarchy I display and have
> it expand to show the children of that section (I have the hierarchy
> iteration code, just not the "gui" code).  Something graphically like a
> macro error (the one that says "Failed to execute macro: groovy") and then
> you click to expand and view the content.
>

http://code.xwiki.org/xwiki/bin/view/Snippets/ShowHideDIVSnippet

Guillaume


> Thanks!
> -Mike
>
> _
> Hotmail is redefining busy with tools for the New Busy. Get more from your
> inbox.
>
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
Guillaume Lerouge
Product Manager - XWiki SAS
Skype: wikibc
Twitter: glerouge
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread Sergiu Dumitriu
On 03/31/2010 03:23 PM, Dean Del Ponte wrote:
> I've recently migrated from the standalone version to the war version, in
> the hopes of making the use of the wiki more permanent.
>
> I'm running xwiki-2.2.4 in tomcat-6.0.24 with MySQL 5.1.  Everything works,
> except I am now unable to attach files of any kind.  I receive the following
> error.  All help is appreciated.  Thanks!
>
> *** Begin error ***
>
> Caused by: java.sql.BatchUpdateException: Incorrect string value:
> '\xEF\x83\xA0 IT...' for column 'XWR_PATCH' at row 1

This means that your database is not correctly configured as utf8.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] [xwiki-devs] XWiki Logo Challenge

2010-03-31 Thread Anca Luca
Hi all,

It is very hard to choose (and by this all participants should understand that 
all proposals are noteworthy). I also took into account following criteria: can 
I draw it with a pencil on a paper in a single color and it would still be 
recognized?

As a result my votes and comments go like this:

4 0.2   -- either B, or A with thicker pencils so that the X is more obvious
5 0.1   -- I like the way it looks but I don't see that much of a wiki 
reference 
+ it's not drawable
12E 0.1 -- it's nice, close / far enough of the old logo, but it looses in 
drawability and single color
16 0.2 (with a little more for B, maybe) -- there could be a color issue but 
the 
shape would make it recognizable easily
20 0.2  -- I like the way it blends together and it is pretty recognizable
8 0.1   -- I like the wheels a lot, they're very much "app platform, geek"-ish
6B 0.1  -- I like the idea but it really needs different colors and more 
polish, 
right now it looks a bit flashy and raw

I also liked the looks of proposals 2, both A and B, but they're not very much 
drawable and the X is not very obvious + I couldn't find why arrows would be 
representative for xwiki...

Note that although 15 meets pretty well the criteria above, it still looks to 
me 
too much around the atlassian logo (yeah, any human shape would do it)... + I'm 
more fond of geometric shapes, I think...

Thanks,
Anca

On 03/26/2010 01:17 PM, Sergiu Dumitriu wrote:
> Hi Community,
>
> The XWiki Logo proposal period is now closed, many thanks to everyone
> who participated. It is now the time to vote the new logo amongst the 19
> proposals available here:
>
> http://dev.xwiki.org/xwiki/bin/Community/LogoChallenge#HProposals
>
> You can send your vote:
> - on the mailing list, by replying to this e-mail
> - on twitter, in the format: #xwikilogo
>
> Don't hesitate to nominate several proposals if you feel that they are
> really close and you cannot decide for just one. Sometimes, a bunch of
> fuzzy opinions can lead to a more accurate result.
>
> IMPORTANT:
> Before choosing a logo based on your personal preference, please try to
> also ask yourself the following questions:
> - Is it distinctive?
> - Is it easy to remember and recognize?
> - Is the design scalable? Could it (or parts of it) be successfully used
> in a 16X16 icon? Would it look good on a very large poster?
> - Can it be used (as it is, or adapted) on both light and dark backgrounds?
> - What would it look like in black and white (not just grayscale)? It's
> ok if some details are lost, but it needs to still look attractive and
> keep the main features.
>
> Motivating your vote also helps better understand what qualities a logo
> evokes in people's minds.
>
> Also note that the designs are not final, the selected proposal will be
> further tweaked and perfected, so don't discard a logo just for minor flaws.
>
> If several proposals come close to being selected, we could organize a
> second round of voting.
>
> Please send us your votes before March 31st.
>
>
> On 03/01/2010 05:57 PM, Jean-Vincent Drean wrote:
>> Hi XWikiers!
>>
>> It's time to inject new blood in XWiki.org. While discussing about
>> improving its look&   feel we thought it would be a good time to create
>> a new logo for XWiki.org as it's an important part of a website
>> design.
>> We borrowed the current logo from XWiki.com some time ago and, in
>> order to keep the distinction between the company and the Open-Source
>> project clear, we think XWiki.org websites and projects need their own
>> logo.
>>
>> As you may know, we love proposals, that's why we'd like to make the
>> logo design an open challenge, anyone interested can join and a vote
>> amongst the community will determine the winner. Even if the main
>> purpose of the challenge is to have fun, the person whose design gets
>> selected will receive XWiki goodies, including his logo printed on a
>> t-shirt obviously :) The designer of the selected logo will enter the
>> Hall Of Fame, and last but not least reward : the design will be
>> spread wide (XWiki Enterprise is more than 1 downloads/month and
>> XWiki.org web site more than 5 visits a month).
>>
>> The challenge takes place there:
>> http://dev.xwiki.org/xwiki/bin/view/Community/LogoChallenge
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] com.xpn.xwiki.doc.XWikiDocument.getStringValue("date_property_name") returns empty String

2010-03-31 Thread Abel Solórzano Astorga
Hi,

I am trying to get the String value of a Date Property. I am using the
following code:

*def obj = doc.getObject("SSI-Internal.CreateIssue");*
*def summary = obj.getStringValue("environment");*
*def date = obj.getStringValue("due_date");*

*doc* is of type *com.xpn.xwiki.doc.XWikiDocument* and *environment* is a
TextArea property. I can get the String value of the TextArea property, but
I can't get the String value of the Date property (*due_date*).

How can I get the String value of a date property?

Thanks,

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


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread 2smart4u
On Wed, Mar 31, 2010 at 6:36 PM, Sergiu Dumitriu  wrote:
>
> This means that your database is not correctly configured as utf8.
>

I see. Well, I didn't scroll down Dean's complete exception-tree.

@Dean:

Directions for setting up MySQL to work woth UTF-8 can be found here:

http://dev.mysql.com/doc/refman/5.0/en/create-database.html

@Sergiu: So I presume that there are no regressions with 2.2.4, right?

Cheers

Gregor


> --
> Sergiu Dumitriu
> http://purl.org/net/sergiu/
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>



-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Automatic save of draft.

2010-03-31 Thread Sophie Alexandre
Hi,

I have a question about edition : 
When a user edit a page, does it exist a mechanism to save automatically
a draft of this page after a certain time if he doesn't  save by
himself ? 

Thanks,

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


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread Sergiu Dumitriu
On 03/31/2010 06:52 PM, 2smart4u wrote:
> On Wed, Mar 31, 2010 at 6:36 PM, Sergiu Dumitriu  wrote:
>>
>> This means that your database is not correctly configured as utf8.
>>
>
> I see. Well, I didn't scroll down Dean's complete exception-tree.
>
> @Dean:
>
> Directions for setting up MySQL to work woth UTF-8 can be found here:
>
> http://dev.mysql.com/doc/refman/5.0/en/create-database.html
>
> @Sergiu: So I presume that there are no regressions with 2.2.4, right?

Right, no regressions regarding this.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread 2smart4u
Sergiu,

hope you don't kill me for this questions, but...

On Wed, Mar 31, 2010 at 7:35 PM, Sergiu Dumitriu  wrote:
>
> Right, no regressions regarding this.
>

*Cough*, regarding anything else (I'm asking about regressions)? If so
and you don't mean known bugs listed in the release-notes, can it be
read up somewhere?

TIA

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread Sergiu Dumitriu
On 03/31/2010 07:47 PM, 2smart4u wrote:
> Sergiu,
>
> hope you don't kill me for this questions, but...
>
> On Wed, Mar 31, 2010 at 7:35 PM, Sergiu Dumitriu  wrote:
>>
>> Right, no regressions regarding this.
>>
>
> *Cough*, regarding anything else (I'm asking about regressions)? If so
> and you don't mean known bugs listed in the release-notes, can it be
> read up somewhere?

Well, I mean that we definitely don't have any storage regressions, but 
there might be other yet unknown regressions, although the chances of 
that happening are small enough.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] com.xpn.xwiki.doc.XWikiDocument.getStringValue("date_property_name") returns empty String

2010-03-31 Thread Sergiu Dumitriu
On 03/31/2010 06:50 PM, Abel Solórzano Astorga wrote:
> Hi,
>
> I am trying to get the String value of a Date Property. I am using the
> following code:
>
> *def obj = doc.getObject("SSI-Internal.CreateIssue");*
> *def summary = obj.getStringValue("environment");*
> *def date = obj.getStringValue("due_date");*
>
> *doc* is of type *com.xpn.xwiki.doc.XWikiDocument* and *environment* is a
> TextArea property. I can get the String value of the TextArea property, but
> I can't get the String value of the Date property (*due_date*).
>
> How can I get the String value of a date property?

getStringValue should always work. Make sure you used the right name, 
and that the date is set.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Automatic save of draft.

2010-03-31 Thread Sergiu Dumitriu
On 03/31/2010 07:06 PM, Sophie Alexandre wrote:
> Hi,
>
> I have a question about edition :
> When a user edit a page, does it exist a mechanism to save automatically
> a draft of this page after a certain time if he doesn't  save by
> himself ?
>
> Thanks,

Since XWiki 1.9, there is such an (experimental) feature, but:
- it only works for the wiki editor, not the WYSIWYG one
- it saves a real version of the document, not a draft

An improved version will be implemented sometime later.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] I can't attach files to content

2010-03-31 Thread 2smart4u
Great, Sergiu, thanks for that information, so I'll put the upgrade on
top of my todo-list

Cheers!

Gregor
-- 
just because you're paranoid, don't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available
@ http://pgpkeys.pca.dfn.de:11371
@ http://pgp.mit.edu:11371/
skype:rc46fi
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] com.xpn.xwiki.doc.XWikiDocument.getStringValue("date_property_name") returns empty String

2010-03-31 Thread Abel Solórzano Astorga
Thanks for the quick response. Then the problem should be another.

Abel,

On Wed, Mar 31, 2010 at 12:06 PM, Sergiu Dumitriu  wrote:

> On 03/31/2010 06:50 PM, Abel Solórzano Astorga wrote:
> > Hi,
> >
> > I am trying to get the String value of a Date Property. I am using the
> > following code:
> >
> > *def obj = doc.getObject("SSI-Internal.CreateIssue");*
> > *def summary = obj.getStringValue("environment");*
> > *def date = obj.getStringValue("due_date");*
> >
> > *doc* is of type *com.xpn.xwiki.doc.XWikiDocument* and *environment* is a
> > TextArea property. I can get the String value of the TextArea property,
> but
> > I can't get the String value of the Date property (*due_date*).
> >
> > How can I get the String value of a date property?
>
> getStringValue should always work. Make sure you used the right name,
> and that the date is set.
>
> --
> 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


[xwiki-users] Performance improvement

2010-03-31 Thread stefan bachert
Hi,

I noticed that the responce time of my wiki was poor.
Analyzing with firebug shows the most time is spend for loading prototype.js.
A download of 130KB consists of 12KB page and the rest was js and css.

I was about to throw prototype.js away.

However, I found a better solution.
When using Jetty, there is a default servlet which is responsible for loading 
static content (e.g. prototype.js)
You can configure a cache control which in the end provides that prototype.js 
(and co) were loaded only once.

That improves the latency to show up a page to 20% of the original time.

To do the same, add the following to your web.xml


default
org.mortbay.jetty.servlet.DefaultServlet

cacheControl
max-age=9,public



This works for Jetty 6, for Jetty 7 you have to change mortbay by eclipse!

Hope this helps

Stefan Bachert


__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com 
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] users Digest, Vol 32, Issue 67

2010-03-31 Thread Mike Davis

> > > > I want to parse XML attachments to a page and display the data in a
> > table or list on the page. Does this functionality exist? Just checking
> > before I write my own code.
> > >
> > > So you have attachments which are XML files and you want to parse them
> > and display their content in a wiki table ?
> > >
> > > If so, I'd suggest you use the {{groovy}} macro and use the groovy xml
> > slurper to do the work. You should be able to write this in less than 10
> > lines :)
> > >
> > > http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
> > >
> > > Thanks
> > > -Vincent
> >
> > Thanks, got that up and running in only a few minutes! Now I'd like a way
> > to have the user click on one level of the xml hierarchy I display and have
> > it expand to show the children of that section (I have the hierarchy
> > iteration code, just not the "gui" code). Something graphically like a
> > macro error (the one that says "Failed to execute macro: groovy") and then
> > you click to expand and view the content.
> >
> 
> http://code.xwiki.org/xwiki/bin/view/Snippets/ShowHideDIVSnippet
> 
> Guillaume


Ok, I have that code working (ShowHidDIV) in a velocity macro with {{html}} 
tags around the div.  Unfortunately, when I pass the xmlslurper object to a 
velocity macro, I can no longer access fields of the object, it looks like it's 
all being converted to a big string.  My code:

{{groovy}}

xmlFile = new String(doc.getAttachment("file.xml").content)
def slurp = new XmlSlurper().parseText(xmlFile)
def allReg = slurp.Register
xcontext.put("allReg",allReg)

{{/groovy}}

 

{{velocity}}
#set($allReg=$xcontext.get("allReg"))

{{html}}

Show/Hide

http://clk.atdmt.com/GBL/go/210850553/direct/01/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] users Digest, Vol 32, Issue 67

2010-03-31 Thread Caleb James DeLisle


Mike Davis wrote:
> I want to parse XML attachments to a page and display the data in a
>>> table or list on the page. Does this functionality exist? Just checking
>>> before I write my own code.
 So you have attachments which are XML files and you want to parse them
>>> and display their content in a wiki table ?
 If so, I'd suggest you use the {{groovy}} macro and use the groovy xml
>>> slurper to do the work. You should be able to write this in less than 10
>>> lines :)
 http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper

 Thanks
 -Vincent
>>> Thanks, got that up and running in only a few minutes! Now I'd like a way
>>> to have the user click on one level of the xml hierarchy I display and have
>>> it expand to show the children of that section (I have the hierarchy
>>> iteration code, just not the "gui" code). Something graphically like a
>>> macro error (the one that says "Failed to execute macro: groovy") and then
>>> you click to expand and view the content.
>>>
>> http://code.xwiki.org/xwiki/bin/view/Snippets/ShowHideDIVSnippet
>>
>> Guillaume
> 
> 
> Ok, I have that code working (ShowHidDIV) in a velocity macro with {{html}} 
> tags around the div.  Unfortunately, when I pass the xmlslurper object to a 
> velocity macro, I can no longer access fields of the object, it looks like 
> it's all being converted to a big string.  My code:

I would approach this problem by using groovy only.
When your velocity or groovy executes, it's output is parsed as XWiki syntax so 
you can do this in the groovy
macro.

println("{{html}}");
// Remember to escape " marks.
println("");
println("Show/Hide");
println("");
pritnln("");
// Is getField() what you want?
println(allReg.getField());
println("");
println("{{/html}}");


Your method is sound and I'm sure it could be made to work, but I would opt to 
use one script language
in order to minimize the code complexity and fragility.

Caleb



> 
> {{groovy}}
> 
> xmlFile = new String(doc.getAttachment("file.xml").content)
> def slurp = new XmlSlurper().parseText(xmlFile)
> def allReg = slurp.Register
> xcontext.put("allReg",allReg)
> 
> {{/groovy}}
> 
>  
> 
> {{velocity}}
> #set($allReg=$xcontext.get("allReg"))
> 
> {{html}}
> 
> Show/Hide
> 
> http://clk.atdmt.com/GBL/go/210850553/direct/01/
> ___
> 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] LDAP Configuration Help Needed

2010-03-31 Thread Dilipkumar Jadhav
Hello folks,

I need some help with a topic that has been discussed very often on the
mailing list - LDAP.

I've tried going through most of the posts on the mailing list but since I
am not a networking guy, I've had lot of trouble understanding the basic
terminology involved with LDAP & AD.

 

The AD that we've on production environment is available only through SSL
which I know will be a bigger challenge to configure with XWiki. Hence, to
start with, I would like to connect my XWiki with the MS Active Directory I
setup on my test machine.

 

With some help, I managed to create a Active Directory. Also, I am able to
connect to this AD using Apache Directory Browser. So this confirms that the
AD is working fine.

Both the AD and XWiki are installed on the same machine.

 

Now, I tried changing the xwiki.cfg LDAP properties but I am unable to login
using any of the users I created in AD. Moreover, I lost my default Admin
credentials for the Wiki (UN:Admin & PW:admin doesn't work anymore).

 

The configuration is as follows:

 

xwiki.authentication.ldap=1

xwiki.authentication.ldap.server=127.0.0.1

xwiki.authentication.ldap.port=389

xwiki.authentication.ldap.base_DN=dc=dilip,dc=com

xwiki.authentication.ldap.bind_DN=cn={0},dc=dilip,dc=com

xwiki.authentication.ldap.bind_pass={1}

xwiki.authentication.ldap.UID_attr=cn

xwiki.authentication.ldap.fields_mapping=name=cn,last_name=sn,first_name=giv
enName,fullname=displayName,mail=cn,ldap_dn=dn

 

And the AD structure can be loosely described as follows:

 

dilip.com

-Builtin

-Computers

-Domain Controllers

-ForeignSecurityPrincipals

-Users

All my users are listed under the "Users" node including Windows
administrator called "Administrator" with password "redhat".

 

Does the {0} need to be replaced with an actual username & {1} replaced with
actual password. Could someone please have a look at my configuration
settings & probably suggest some changes. I am sure I've missed something
somewhere.

 

Thank you for your valuable time.

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