diff options
author | Dr Scofield | 2008-09-22 11:20:09 +0000 |
---|---|---|
committer | Dr Scofield | 2008-09-22 11:20:09 +0000 |
commit | 7def786ef4d62c2ffad8cea0cba7db033f8f0d27 (patch) | |
tree | 4da62a195714ea1206fd4d3b3688b22c31ce254c /OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs | |
parent | Remove the script engine identifier tag, so the compiler just sees (diff) | |
download | opensim-SC-7def786ef4d62c2ffad8cea0cba7db033f8f0d27.zip opensim-SC-7def786ef4d62c2ffad8cea0cba7db033f8f0d27.tar.gz opensim-SC-7def786ef4d62c2ffad8cea0cba7db033f8f0d27.tar.bz2 opensim-SC-7def786ef4d62c2ffad8cea0cba7db033f8f0d27.tar.xz |
cleanups in inventory REST code. also, disables digest authentications
for inventory REST calls for the time being, as firefox, curl, and
also python's urllib2 cannot authenticate using digest auth.
fix permission checking for prim inventory to be the same as for
normal edit ops.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs index b67922f..7a6d4af 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs | |||
@@ -130,6 +130,9 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
130 | 130 | ||
131 | try | 131 | try |
132 | { | 132 | { |
133 | // digest scheme seems borked: disable it for the time | ||
134 | // being | ||
135 | rdata.scheme = Rest.AS_BASIC; | ||
133 | if (!rdata.IsAuthenticated) | 136 | if (!rdata.IsAuthenticated) |
134 | { | 137 | { |
135 | rdata.Fail(Rest.HttpStatusCodeNotAuthorized, String.Format("user \"{0}\" could not be authenticated")); | 138 | rdata.Fail(Rest.HttpStatusCodeNotAuthorized, String.Format("user \"{0}\" could not be authenticated")); |