Re: [xwiki-users] generic XML API snippet, and SOS

2008-12-19 Thread Vincent Massol
Hi Yishay,

On Dec 19, 2008, at 3:54 AM, Yishay Mor wrote:

 I've posted a snippet:
 http://code.xwiki.org/xwiki/bin/view/Snippets/GenericXMLapiSnippet

 Which adds a very simple XML API to a site. This API allows other  
 sites to
 programmaticaly query the XWiki site, and display data from it in  
 any form
 they choose.
 You can see an example here:
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/ 
 genericXML

In case you didn't know about it, all xwiki pages can be viewed as XML  
right (just add xpage=xml i the URL)? Then all you need is an XPath  
expression to query whatever part you're interested in. Or a XSL  
transformation to transform it into another XML document.

The snippet looks cool but it's quite hard to understand what it does.  
Maybe you could add some more explanation and examples?

 I came across two problems in the process of writing this. One is  
 general,
 and onw specific to my site - and fatal.

 the first problem is that is seems like this API can deliver  
 protected data
 to a non-registered user. To avoid this on my site, I restricted it  
 not to
 show classes under the XWiki space. Shouldn't this be blocked at a  
 lower
 level?

It's already blocked by the permission system and for password fields  
you shouldn't be able to see the value.

If you don't want users to view some data you must make the page non  
viewable for them.

 The second problem was that I have some fields (propoerties) in some  
 of the
 classes which I'm not using. Since I can't delete them, I decided to  
 change
 the name to .unused and filter. However, once I did this it seems  
 to have
 completly crashed the class at hand. I can't even look at the Class  
 in the
 ClassEditor to delete the latest versions and go back to the latest  
 good
 one.
 Here is the corrupted class:
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Cases/CaseClass

I've never seen that :) Something is indeed deeply broken since the  
rendering is failing to display but I don't know why.

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


[xwiki-users] xwiki + ldap filter

2008-12-19 Thread Bartłomiej Radziszewski
hello,

it is posible to use filter in xwiki user search in ldap? i want to use 
activeAccount atribute when it is TRUE - user have access to xiwki, when 
it is FALSE user don't have it..

Thx for help and greetings,
Bart

-- 
Bartłomiej Radziszewski
mobile: +48 509 561 540
e-mail: b...@debian.linux.pl
JID: b...@debian.linux.pl
ICQ: #305569725


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


Re: [xwiki-users] Using penrose LDAP server with Xwiki

2008-12-19 Thread Thomas Mortagne
See http://jira.xwiki.org/jira/browse/XWIKI-3023

Should be fixed since 1.7.1 at least for the timeout on first connect/bind.

On Wed, Dec 3, 2008 at 2:57 PM, Thomas Mortagne
thomas.morta...@xwiki.com wrote:
 On Wed, Dec 3, 2008 at 10:45 AM, Cazottes Nicolas ncazot...@sqli.com wrote:
 Hi Thomas,

 I have searched deeper and finally found why I have this timeout.
 The explanation was found when sniffing the network between the Xwiki
 LDAP client and the penrose server.
 What happens in terms of messages exchanged with the LDAP server when it
 works (for exemple an openLDAP) is :
 1 - bind request and response
 2 - extended request and response
 3 - search request and response

 The problem of penrose is that the extended request is not
 recognized/implemented by the server. So when receiving this request the
 server protects himself by closing directly the connection. This makes
 that the search request that follows ends in timeout. The error is not
 quite explicit there...

 So I searched why there is an extended request and what is it for. I
 discovered that the LDAP Client library sends this request to the server
 when a call is done on LDAPConnection.isConnectionAlive(). It is a sort
 of a ping where the server normally responds that the extended request
 is not known.
 My questions at this point are : is this behaviour knowned and whished
 by the xwiki ldap connection developpers ? As it is slightly
 underperformant, would it be usefull to make this test not mandatory
 through a configuration key for example ?

 I just looked at XWikiLDAPConnection.open and yes I think the line

 succeed = this.connection.isConnected() 
 this.connection.isConnectionAlive()  this.connection.isBound();

 is not really useful as if there is a problem connect() or bind()
 should throw exception so I think we can just have

 succeed = true;

 or something like that.



 In order to improve all of this, what I suggest is to :
 1 - use a newer version of the ldap client in Xwiki with a clearly
 determined version. The new one is on the novell web site at
 http://developer.novell.com/wiki/index.php/Jldap. This would make the
 error a little clearer (an IOException is raised when the last jldap
 client library is compiled and used).
 2 - optimize the LDAP connection by not doing unnecessary extended request.
 I plan to do it to solve my problem and I can send it through a JIRA for
 you to integrate it in Xwiki.

 For the other points, I put my comments in the content of the mail.


 Nicolas


 Thomas Mortagne a écrit :
 Hi Nicolas,

 On Mon, Dec 1, 2008 at 1:29 PM, Cazottes Nicolas ncazot...@sqli.com wrote:

 Hello,

 I am trying to use Penrose LDAP virtual server
 (http://docs.safehaus.org/display/PENROSE/Home) as an LDAP source to
 manage authentification of my xwiki instance.
 The connection to the server works fine but when xwiki tries to search
 for my user, it stops with the following exception :
 2008-12-01 10:06:38,921
 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19]
 DEBUG ldap.XWikiLDAPUtils - Searching for the user in LDAP:
 user:nca base: query:(uid=nca) uid:uid
 2008-12-01 10:06:39,921
 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19]
 DEBUG ldap.XWikiLDAPConnection- LDAP Search failed
 LDAPException: Client request timed out (85) LDAP Timeout
at com.novell.ldap.Message$Timeout.run(Unknown Source)
 2008-12-01 10:06:39,921
 [http://localhost:8080/xwiki/bin/loginsubmit/XWiki/XWikiLogin] [P1-19]
 DEBUG LDAP.XWikiLDAPAuthServiceImpl   - Local LDAP authentication failed.

 After searching in the xwiki source code, I found there is a timeout of
 1s for a search query to execute (in XWikiLDAPConnection line 292). It
 may explains the error I imagine.
 Is it possible to make this timeout defined via a configuration key in
 xwiki.cfg ?


 I just created http://jira.xwiki.org/jira/browse/XWIKI-2912


 Another point related to xwiki LDAP logs : I don't like very much to
 have the password sent to xwiki writen clearly in the log file when LDAP
 debug is activated. Is it possible to have stars instead of the real
 value of the password ?


 and http://jira.xwiki.org/jira/browse/XWIKI-2913


 If someone can do these modifications to the code, I will be pleased to
 test them.
 I would like to test it by myself but, currently, I did not manage to
 build xwiki with maven after checking out the source.


 I you already checkouted the sources you just need to execute mvn
 install (after installing maven of course) in xwiki-core folder
 (where is located the LDAP code) and replace the
 xwiki-core-version.jar in your web app by the generated one. You can
 look at http://dev.xwiki.org/xwiki/bin/view/Community/Building for
 more details (I guess you already looked here but never knows ;)).


 For the build, actually it works fine for all the maven projects
 excepted gwt and wysiwyg.
 When I launch : mvn install -Dmaven.test.skip=true -Pwindows, I have the
 

Re: [xwiki-users] XWikiAuthServiceImpl.java

2008-12-19 Thread Thomas Mortagne
Hi,

See http://jira.xwiki.org/jira/browse/XWIKI-3024

Thanks for reporting this.

On Thu, Dec 11, 2008 at 5:05 PM, Lewis Denizen orang...@gmail.com wrote:
 Hi xwiki-users,

 In XWikiAuthServiceImpl.java, I see the following lines:

 Line 521:
String createuser = getParam(auth_createuser, context);

 Line 500~517:
protected String getParam(String name, XWikiContext context)
{
String param = ;
try {
param = context.getWiki().getXWikiPreference(name, context);
} catch (Exception e) {
}
if (param == null || .equals(param)) {
try {
param =
 context.getWiki().Param(xwiki.authentication. +
 StringUtils.replace(name, auth_, .));
} catch (Exception e) {
}
}
if (param == null) {
param = ;
}
return param;
}

 Which requires me to create a key called
 xwiki.authentication..createuser in the config - which is strange...
  Unless there are any side effects, would it be possible to request
 the StringUtils.replace() removed?  Thanks again for a great release!
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




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


Re: [xwiki-users] generic XML API snippet, and SOS

2008-12-19 Thread Yishay Mor
 From: Vincent Massol vinc...@massol.net

  I've posted a snippet:
  http://code.xwiki.org/xwiki/bin/view/Snippets/GenericXMLapiSnippet


I see you've moved it to:
http://code.xwiki.org/xwiki/bin/view/Snippets/GenericXMLApiSnippet


 In case you didn't know about it, all xwiki pages can be viewed as XML
 right [..]

The snippet looks cool but it's quite hard to understand what it does.


I know, but I wanted to provide client with a simple to use API that allows
them to browse and retrieve the data. The content produced by ?xpage=xml is
too rich :)
I'll document the snippet

 the first problem is that is seems like this API can deliver protected
 data

 It's already blocked by the permission system and for password fields you
 shouldn't be able to see the value.


That's what I thought. But have a look at:
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/XWiki/YishayMor
vs.
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/genericXML?xpage=rdftargetClass=XWiki.XWikiUserstargetObject=XWiki.YishayMor



  Here is the corrupted class:
  http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Cases/CaseClass

 I've never seen that :) Something is indeed deeply broken since the
 rendering is failing to display but I don't know why.


The problem started when I renamed a property to .unused. I thought I
could then add something like:
#if (!$propertyName.startsWith(.))
to hide unused properties.
I think what happened is this:
The class definition is stored (or processed) in XML, and having a property
name starting with '.' confuses the parser.
For example,
http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/genericXML?xpage=rdftargetClass=Cases.CaseClasstargetObject=fields=Name
provokes this:

org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getDocument' in class com.xpn.xwiki.api.XWiki threw exception
com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while
reading document Cases.Woodforthetrees
Wrapped Exception: Error number 3202 in 3: Exception while reading document
Cases.CaseClass
Wrapped Exception: Error number 2002 in 2: Error parsing xml

___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Can't log on in Internet Explorer

2008-12-19 Thread Nick Watts
I have XWiki 1.6.1.13621 installed on Tomcat 6.0.18.  I am having some
problems logging in when using IE 7.  I'm putting in what I know is a valid
username and password, but after submitting the login form I am brought back
to the login screen.  I found a closed issue in Jira that may be the same
problem I'm running into (http://jira.xwiki.org/jira/browse/XWIKI-2211).  I
have never had a problem with Firefox or Safari, only IE.  Something to add
to the mix though is that I was able to login with IE from within the LAN
where XWiki is installed using my work laptop.  If I try to login with IE on
the same laptop, but across the Internet, the login fails.  Does anyone have
any insight into this problem?

-- 
Nick Watts
blog: thewonggei.wordpress.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can't log on in Internet Explorer

2008-12-19 Thread Esbach, Brandon
Any cookie restrictions setup on the IE options? 

-Original Message-
From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
Of Nick Watts
Sent: 19 December 2008 12:15
To: XWiki Users
Subject: [xwiki-users] Can't log on in Internet Explorer

I have XWiki 1.6.1.13621 installed on Tomcat 6.0.18.  I am having some
problems logging in when using IE 7.  I'm putting in what I know is a
valid username and password, but after submitting the login form I am
brought back to the login screen.  I found a closed issue in Jira that
may be the same problem I'm running into
(http://jira.xwiki.org/jira/browse/XWIKI-2211).  I have never had a
problem with Firefox or Safari, only IE.  Something to add to the mix
though is that I was able to login with IE from within the LAN where
XWiki is installed using my work laptop.  If I try to login with IE on
the same laptop, but across the Internet, the login fails.  Does anyone
have any insight into this problem?

--
Nick Watts
blog: thewonggei.wordpress.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] Can't log on in Internet Explorer

2008-12-19 Thread Mike A.
In xwiki.cfg, have you specified the login name name (bind_dn) as
domainusername (in xwiki.cfg it would be domain\{0})?
Firefox can authentificate using only username, but IE needs to
specify domain also.
 Quoting Nick Watts : I have XWiki 1.6.1.13621 installed on Tomcat
6.0.18.  I am having some
 problems logging in when using IE 7.  I'm putting in what I know is
a valid
 username and password, but after submitting the login form I am
brought back
 to the login screen.  I found a closed issue in Jira that may be the
same
 problem I'm running into
(http://jira.xwiki.org/jira/browse/XWIKI-2211).  I
 have never had a problem with Firefox or Safari, only IE.  Something
to add
 to the mix though is that I was able to login with IE from within
the LAN
 where XWiki is installed using my work laptop.  If I try to login
with IE on
 the same laptop, but across the Internet, the login fails.  Does
anyone have
 any insight into this problem?
 -- 
 Nick Watts
 blog: thewonggei.wordpress.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 Best regards, Mike

Links:
--
[1] mailto:nick.a.wa...@gmail.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] generic XML API snippet, and SOS

2008-12-19 Thread Sergiu Dumitriu
Yishay Mor wrote:
 the first problem is that is seems like this API can deliver protected
 data

 It's already blocked by the permission system and for password fields you
 shouldn't be able to see the value.
 
 
 That's what I thought. But have a look at:
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/XWiki/YishayMor
 vs.
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/genericXML?xpage=rdftargetClass=XWiki.XWikiUserstargetObject=XWiki.YishayMor

The problem is not that the user profile is not readable, but that the
sheet that displays the profile is protected. This is a false
protection, as the user profile is readable, it simply isn't displayed.
What you can get in your XML respects the access rights.

 Here is the corrupted class:
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Cases/CaseClass
 I've never seen that :) Something is indeed deeply broken since the
 rendering is failing to display but I don't know why.
 
 
 The problem started when I renamed a property to .unused. I thought I
 could then add something like:
 #if (!$propertyName.startsWith(.))
 to hide unused properties.
 I think what happened is this:
 The class definition is stored (or processed) in XML, and having a property
 name starting with '.' confuses the parser.

Yes, that is the problem. And any action you want to perform requires
that the document is first loaded, which fails. The only way around this
is a direct database change (which I just did, now the class displays
fine). I created http://jira.xwiki.org/jira/browse/XWIKI-3026 to
remember this issue, and it will need to be solved some time later.

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


Re: [xwiki-users] Can't log on in Internet Explorer

2008-12-19 Thread Sergiu Dumitriu
Nick Watts wrote:
 I have XWiki 1.6.1.13621 installed on Tomcat 6.0.18.  I am having some
 problems logging in when using IE 7.  I'm putting in what I know is a valid
 username and password, but after submitting the login form I am brought back
 to the login screen.  I found a closed issue in Jira that may be the same
 problem I'm running into (http://jira.xwiki.org/jira/browse/XWIKI-2211).  I
 have never had a problem with Firefox or Safari, only IE.  Something to add
 to the mix though is that I was able to login with IE from within the LAN
 where XWiki is installed using my work laptop.  If I try to login with IE on
 the same laptop, but across the Internet, the login fails.  Does anyone have
 any insight into this problem?
 

This is most likely a cookie problem. Try cleaning cookies first, and
see if you can login afterwards.
-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Can't log on in Internet Explorer

2008-12-19 Thread Nick Watts
I tried cleaning out my cookies and the problem persisted.  I also tried
adding my site to my list of trusted sites which didn't work either.  I even
took the security all the way to low for trusted sites with no change.

On Fri, Dec 19, 2008 at 9:03 AM, Sergiu Dumitriu ser...@xwiki.com wrote:

 Nick Watts wrote:
  I have XWiki 1.6.1.13621 installed on Tomcat 6.0.18.  I am having some
  problems logging in when using IE 7.  I'm putting in what I know is a
 valid
  username and password, but after submitting the login form I am brought
 back
  to the login screen.  I found a closed issue in Jira that may be the same
  problem I'm running into (http://jira.xwiki.org/jira/browse/XWIKI-2211).
  I
  have never had a problem with Firefox or Safari, only IE.  Something to
 add
  to the mix though is that I was able to login with IE from within the LAN
  where XWiki is installed using my work laptop.  If I try to login with IE
 on
  the same laptop, but across the Internet, the login fails.  Does anyone
 have
  any insight into this problem?
 

 This is most likely a cookie problem. Try cleaning cookies first, and
 see if you can login afterwards.
 --
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Nick Watts
blog: thewonggei.wordpress.com
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] generic XML API snippet, and SOS

2008-12-19 Thread Yishay Mor

 From: Sergiu Dumitriu ser...@xwiki.com

 Yishay Mor wrote:
  That's what I thought. But have a look at:
  http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/XWiki/YishayMor
  vs.
 
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/api/genericXML?xpage=rdftargetClass=XWiki.XWikiUserstargetObject=XWiki.YishayMor

 The problem is not that the user profile is not readable, but that the
 sheet that displays the profile is protected. This is a false
 protection, as the user profile is readable, it simply isn't displayed.
 What you can get in your XML respects the access rights.


I thought that might be the case. This is the default setting on the XWiki
farm. Perhaps it is a bit misleading? Also, how do I change access rights on
all XWiki.XWikiUser objects to fix this?


  Here is the corrupted class:
 
 http://patternlanguagenetwork.myxwiki.org/xwiki/bin/view/Cases/CaseClass
  I've never seen that :) Something is indeed deeply broken since the
  rendering is failing to display but I don't know why.


Yes, that is the problem. And any action you want to perform requires that
the document is first loaded, which fails. The only way around this is a
direct database change (which I just did, now the class displays fine). I
created http://jira.xwiki.org/jira/browse/XWIKI-3026 to remember this issue,
and it will need to be solved some time later.

Thanks! you saved me.

___
 Yishay Mor, Researcher, London Knowledge Lab
  http://www.lkl.ac.uk/people/mor.html
  http://www.google.com/calendar/embed?src=yishaym%40gmail.com
  +44-20-7837 x5737


2008/12/19 users-requ...@xwiki.org

 Send users mailing list submissions to
users@xwiki.org

 To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xwiki.org/mailman/listinfo/users
 or, via email, send a message with subject or body 'help' to
users-requ...@xwiki.org

 You can reach the person managing the list at
users-ow...@xwiki.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of users digest...


 Today's Topics:

   1. Re: Can't log on in Internet Explorer (Esbach, Brandon)
   2. Re: Can't log on in Internet Explorer (Mike A.)
   3. Re: ldap + xwiki.authentication.ldap.user_group (Thomas Mortagne)
   4. Re: generic XML API snippet, and SOS (Sergiu Dumitriu)
   5. Re: Can't log on in Internet Explorer (Sergiu Dumitriu)
   6. Re: Can't log on in Internet Explorer (Nick Watts)


 --

 Message: 1
 Date: Fri, 19 Dec 2008 08:18:41 -0500
 From: Esbach, Brandon esba...@tycoelectronics.com
 Subject: Re: [xwiki-users] Can't log on in Internet Explorer
 To: XWiki Users users@xwiki.org
 Message-ID:

 b7266b04487707449a3919731a7dba7810ef1...@us358mx02.tycoelectronics.net

 Content-Type: text/plain;   charset=us-ascii

 Any cookie restrictions setup on the IE options?

 -Original Message-
 From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
 Of Nick Watts
 Sent: 19 December 2008 12:15
 To: XWiki Users
 Subject: [xwiki-users] Can't log on in Internet Explorer

 I have XWiki 1.6.1.13621 installed on Tomcat 6.0.18.  I am having some
 problems logging in when using IE 7.  I'm putting in what I know is a
 valid username and password, but after submitting the login form I am
 brought back to the login screen.  I found a closed issue in Jira that
 may be the same problem I'm running into
 (http://jira.xwiki.org/jira/browse/XWIKI-2211).  I have never had a
 problem with Firefox or Safari, only IE.  Something to add to the mix
 though is that I was able to login with IE from within the LAN where
 XWiki is installed using my work laptop.  If I try to login with IE on
 the same laptop, but across the Internet, the login fails.  Does anyone
 have any insight into this problem?

 --
 Nick Watts
 blog: thewonggei.wordpress.com
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users


 --

 Message: 2
 Date: Fri, 19 Dec 2008 15:23:10 +0200
 From: Mike A. _m...@inbox.lv
 Subject: Re: [xwiki-users] Can't log on in Internet Explorer
 To: XWiki Users users@xwiki.org
 Message-ID: 1229692990.494ba03ea8...@www.inbox.lv
 Content-Type: text/plain; charset=UTF-8

 In xwiki.cfg, have you specified the login name name (bind_dn) as
 domainusername (in xwiki.cfg it would be domain\{0})?
 Firefox can authentificate using only username, but IE needs to
 specify domain also.
  Quoting Nick Watts : I have XWiki 1.6.1.13621 installed on Tomcat
 6.0.18.  I am having some
  problems logging in when using IE 7.  I'm putting in what I know is
 a valid
  username and password, but after submitting the login form I am
 brought back
  to the login screen.  I found a closed issue in Jira that may be the
 same
  problem I'm running into
 (http://jira.xwiki.org/jira/browse/XWIKI-2211).  I
 

Re: [xwiki-users] WebDAV.XWikiUI.V1.PATCH

2008-12-19 Thread Karsten Nielsen
Hi Asiri

The xwiki-root-wabapp did not fix the problem I have with Microsoft 
Office 2007 it still only opens in read-only mode.

The new wxiki-webdav-**.jar did however fix the permission problem :)

I have asked for the extra work when I want tu use un released feautres :)

- Karten

Asiri Rathnayake wrote:
 Hi Karsten,
 
 
 
 On Thu, Dec 18, 2008 at 9:06 PM, Karsten Nielsen kars...@foo-bar.dk wrote:
 
 Hi Asiri

 The problem has 2 aspects it seams.

 1. The problem turned out not to be a vista problem but an microsoft
 office 2007 issue. I have googled for a solution and what I found was to
 copy xwiki to tomcat's ROOT directory but xwiki webdav does not like that.
 the $xwiki.webdav.getURL() returns nothing.

 
 You should use the xwiki-root-webapp which was exactly meant to solve this
 problem [
 http://maven.xwiki.org/snapshots/com/xpn/xwiki/platform/tools/xwiki-rootwebapp/1.1-SNAPSHOT/xwiki-rootwebapp-1.1-20081218.144304-589.war
 ]
 
 Deploy this war file as your root webapp and deploy the xwiki webapp as
 usual and you are good to go.
 
 
 2. If I try to use the latest xwiki-webdav-1.8-20081218.123600-108.jar I
 get this error when I try to reload my xwiki
 
 
 Sorry, I should have mentioned this but didn't came into mind. The latest
 webdav version Uses XWikiDavFilter and XWikiDavServlet instead of DavFilter
  DavServlet. So you need to edit your web.xml file accordingly. Open your
 /webapps/xwiki/WEB-INF/web.xml and find the following entries :
 
 !-- Filter used to 'steal' webdav requests made to the application root --
 filter
   filter-nameDavFilter/filter-name
   filter-classcom.xpn.xwiki.plugin.webdav.DavFilter/filter-class
 /filter
 
 AND
 
 !-- WebDAV servlet --
 servlet
   servlet-namewebdav/servlet-name
   servlet-classcom.xpn.xwiki.plugin.webdav.DavServlet/servlet-class
 /servlet
 
 Then change them to :
 
 !-- Filter used to 'steal' webdav requests made to the application root --
 filter
   filter-nameDavFilter/filter-name
   filter-classcom.xpn.xwiki.plugin.webdav.XWikiDavFilter/filter-class
 /filter
 
 AND
 
 !-- WebDAV servlet --
 servlet
   servlet-namewebdav/servlet-name
   servlet-classcom.xpn.xwiki.plugin.webdav.XWikiDavServlet/servlet-class
 /servlet
 
 I think you need to do both of these tasks to make it work. I'm sorry about
 having to drag you this long but it's a feature we haven't released yet, so
 there is some trouble... ;)
 
 - Asiri
 ___
 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] WebDAV.XWikiUI.V1.PATCH

2008-12-19 Thread Karsten Nielsen
Hi Asiri

I do not think it is a Vista issue because if I install Microsoft Office 
2003 on the vista test machine the file are opened in read write mode.

I think that the problem is within Microsoft Office 2007 and not in Vista.

If I can be of further help just let me know.

- Karsten

Asiri Rathnayake wrote:
 Hi Karsten,
 
 The xwiki-root-wabapp did not fix the problem I have with Microsoft
 Office 2007 it still only opens in read-only mode.

 
 So this means we have to find a way around with vista when we officially
 release the feature. I'm not sure whether there will be any solution but I
 will definitely look into this.
 
 Thank you for finding this issue :)
 
 - Asiri
 ___
 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] WebDAV.XWikiUI.V1.PATCH

2008-12-19 Thread Asiri Rathnayake
Hi Karsten,

I do not think it is a Vista issue because if I install Microsoft Office
 2003 on the vista test machine the file are opened in read write mode.

 I think that the problem is within Microsoft Office 2007 and not in Vista.


It seems like this problem is faced by many webdav implementations (googling
for office+2007+webdav+readonly returns many positive hits). Anyway, I'm
unable look into this issue seriously at the moment because I don't have a
Vista box. Btw, did you go through
http://blogs.msdn.com/sharepoint/archive/2007/10/19/known-issue-office-2007-on-windows-vista-prompts-for-user-credentials-when-opening-documents-in-a-sharepoint-2007-site.aspx?
**It seems to have a potential solution under How to place Office 2007
applications into Windows XP SP2 compatibility mode.

Btw, on which port are you executing xwiki server? I think for windows
clients it MUST to be on port 80. But since you got it to work with office
2003, i beleive you are already running the server at port 80 :)

If I can be of further help just let me know.


You have already helped us! and it's really appreciated :)

Thanks.

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