Yes indeed, I know it isn't exactly new. I suppose I should have pointed it out, but since the first one was from my code and this one is from the client, I thought someone might pay attention....and they did!
At the very least the client should not crash if the user enters something it doesn't understand so it needs better exception handling. (fix #1)
The client should also provide better help with more than just the one "help" command, it should have expanded help on any one command to include samples or examples, like:
"help grant" would give
grant [<namespace>={DAV|SLIDE] <permission>={all|write|read|read-acl...}
and so forth (fix#2)
Obviously the server code needs to be fixed with your patch too. (fix #3)
Ollie
Ingo Brunberg wrote:
Hi Ollie,
we had discussed this before, hadn't we. See this thread: http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=5123
There I explained that this reveals a bug in the server code. Unfortunately noone took up the patch that I have posted, so I will be going to commit it myself.
Regards, Ingo
More Info:
[LOCALHOST] /AJCS/ $ cd files [LOCALHOST] /AJCS/files/ $ cd AJCSData [LOCALHOST] /AJCS/files/AJCSData/ $ acl
Error: unknown type of principal
element: <D:ace>
<D:principal>
<D:owner />
</D:principal>
<D:grant>
<D:privilege>
<D:read-acl />
</D:privilege>
</D:grant>
<D:inherited>
<D:href>/AJCS/files</D:href>
</D:inherited>
</D:ace>
ACL for /AJCS/files/AJCSData/:
------------------------------------------------------------
granted to /AJCS/roles/user (not protected) (inherited from '/AJCS/files')
DAV:write
Fatal Error: null
java.lang.NullPointerException
at org.apache.webdav.cmd.Client.showAces(Client.java:1827)
at org.apache.webdav.cmd.Client.acl(Client.java:1068)
at org.apache.webdav.cmd.ClientParser.acl(ClientParser.java:1764)
at org.apache.webdav.cmd.ClientParser.command(ClientParser.java:409)
at org.apache.webdav.cmd.ClientParser.commands(ClientParser.java:210)
at org.apache.webdav.cmd.Client.run(Client.java:149)
at org.apache.webdav.cmd.Slide.main(Slide.java:124)
Please, email to [EMAIL PROTECTED]
Mike Oliver wrote:
Ladies and Gentlemen,
I am trying to use the client from the latest build from the latest version from cvs.
The help from the client says: "grant [<namespace>] <permission> [on <path>] to <principal>"
Ok here is what I am entering and what I am getting back.
[LOCALHOST] /AJCS/ $ grant write on /AJCS/files/AJCSData to ollie grant DAV::write on /AJCS/files/AJCSData to /ollie Error: unknown type of principal element: <D:ace> ... </D:ace> Fatal Error: null java.lang.NullPointerException at org.apache.webdav.cmd.Client.addPermission(Client.jaa:1698) ...
So then I tried: grant write on /AJCS/files/AJCSData to /users/ollie
but got same response.
Whazzup?
Ollie
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
