|
@@ -30,19 +30,21 @@ def wsgi_encode(s):
|
30
|
30
|
return s.encode().decode('latin1')
|
31
|
31
|
|
32
|
32
|
|
|
33
|
+
|
|
34
|
+
|
33
|
35
|
# ============================================================
|
34
|
36
|
# PostgreSQLProvider
|
35
|
37
|
# ============================================================
|
36
|
38
|
class Provider(DAVProvider):
|
37
|
|
- def __init__(self, manage_lock=True):
|
|
39
|
+ def __init__(self, show_history=True, show_deleted=True, show_archived=True, manage_locks=True):
|
38
|
40
|
super(Provider, self).__init__()
|
39
|
41
|
|
40
|
|
- if manage_lock:
|
|
42
|
+ if manage_locks:
|
41
|
43
|
self.lockManager = LockManager(LockStorage())
|
42
|
44
|
|
43
|
|
- self._show_archive = True
|
44
|
|
- self._show_delete = True
|
45
|
|
- self._show_history = True
|
|
45
|
+ self._show_archive = show_archived
|
|
46
|
+ self._show_delete = show_deleted
|
|
47
|
+ self._show_history = show_history
|
46
|
48
|
|
47
|
49
|
def show_history(self):
|
48
|
50
|
return self._show_history
|
|
@@ -61,8 +63,15 @@ class Provider(DAVProvider):
|
61
|
63
|
def getResourceInst(self, path, environ):
|
62
|
64
|
#if not self.exists(path, environ):
|
63
|
65
|
# return None
|
|
66
|
+ if not self.exists(path, environ):
|
|
67
|
+ return None
|
|
68
|
+
|
|
69
|
+ uapi = UserApi(None)
|
|
70
|
+ environ['user'] = uapi.get_one_by_email(environ['http_authenticator.username'])
|
64
|
71
|
|
65
|
72
|
norm_path = normpath(path)
|
|
73
|
+ norm_path = self.transform_to_display(norm_path)
|
|
74
|
+
|
66
|
75
|
root_path = environ['http_authenticator.realm']
|
67
|
76
|
parent_path = dirname(norm_path)
|
68
|
77
|
|
|
@@ -101,6 +110,7 @@ class Provider(DAVProvider):
|
101
|
110
|
path=norm_path,
|
102
|
111
|
environ=environ,
|
103
|
112
|
content=content,
|
|
113
|
+ workspace=self.get_workspace_from_path(norm_path, workspace_api)
|
104
|
114
|
)
|
105
|
115
|
|
106
|
116
|
# is delete
|
|
@@ -110,7 +120,8 @@ class Provider(DAVProvider):
|
110
|
120
|
return sql_resources.DeletedFolder(
|
111
|
121
|
path=norm_path,
|
112
|
122
|
environ=environ,
|
113
|
|
- content=content
|
|
123
|
+ content=content,
|
|
124
|
+ workspace=self.get_workspace_from_path(norm_path, workspace_api)
|
114
|
125
|
)
|
115
|
126
|
|
116
|
127
|
# is history
|
|
@@ -128,7 +139,8 @@ class Provider(DAVProvider):
|
128
|
139
|
path=norm_path,
|
129
|
140
|
environ=environ,
|
130
|
141
|
content=content,
|
131
|
|
- type=type
|
|
142
|
+ type=type,
|
|
143
|
+ workspace=self.get_workspace_from_path(norm_path, workspace_api)
|
132
|
144
|
)
|
133
|
145
|
|
134
|
146
|
# is history
|
|
@@ -154,16 +166,21 @@ class Provider(DAVProvider):
|
154
|
166
|
return sql_resources.HistoryOtherFile(path, environ, content, content_revision)
|
155
|
167
|
|
156
|
168
|
# other
|
|
169
|
+ if content is None:
|
|
170
|
+ return None
|
157
|
171
|
if content.type == ContentType.Folder:
|
158
|
|
- return sql_resources.Folder(path, environ, content)
|
|
172
|
+ return sql_resources.Folder(path, environ, content, content.workspace)
|
159
|
173
|
elif content.type == ContentType.File:
|
160
|
|
- return sql_resources.File(path, environ, content, False)
|
|
174
|
+ return sql_resources.File(path, environ, content)
|
161
|
175
|
elif content.type in [ContentType.Page, ContentType.Thread]:
|
162
|
176
|
return sql_resources.OtherFile(path, environ, content)
|
163
|
177
|
else:
|
164
|
178
|
return None
|
165
|
179
|
|
166
|
180
|
def exists(self, path, environ):
|
|
181
|
+ uapi = UserApi(None)
|
|
182
|
+ environ['user'] = uapi.get_one_by_email(environ['http_authenticator.username'])
|
|
183
|
+
|
167
|
184
|
norm_path = normpath(path)
|
168
|
185
|
parent_path = dirname(norm_path)
|
169
|
186
|
root_path = environ['http_authenticator.realm']
|
|
@@ -176,16 +193,12 @@ class Provider(DAVProvider):
|
176
|
193
|
)
|
177
|
194
|
|
178
|
195
|
if path == root_path:
|
179
|
|
- return sql_resources.Root(path, environ)
|
|
196
|
+ return True
|
180
|
197
|
elif parent_path == root_path:
|
181
|
|
- return sql_resources.Workspace(
|
182
|
|
- path=norm_path,
|
183
|
|
- environ=environ,
|
184
|
|
- workspace=self.get_workspace_from_path(
|
|
198
|
+ return self.get_workspace_from_path(
|
185
|
199
|
norm_path,
|
186
|
200
|
workspace_api
|
187
|
|
- )
|
188
|
|
- ) is not None
|
|
201
|
+ ) is not None
|
189
|
202
|
|
190
|
203
|
is_archived = re.search(r'/\.archived/(\.history/)?(?!\.history)[^/]*(/\.)?(history|deleted|archived)?$', norm_path) is not None
|
191
|
204
|
|
|
@@ -193,6 +206,10 @@ class Provider(DAVProvider):
|
193
|
206
|
|
194
|
207
|
revision_id = re.search(r'/\.history/[^/]+/(\d+)-([^/].+)$', norm_path)
|
195
|
208
|
|
|
209
|
+ blbl = self.reduce_path(norm_path)
|
|
210
|
+ if dirname(blbl) == '/':
|
|
211
|
+ return self.get_workspace_from_path(norm_path, workspace_api) is not None
|
|
212
|
+
|
196
|
213
|
if revision_id:
|
197
|
214
|
revision_id = revision_id.group(1)
|
198
|
215
|
content = content_api.get_one_revision(revision_id)
|
|
@@ -217,18 +234,18 @@ class Provider(DAVProvider):
|
217
|
234
|
|
218
|
235
|
workspace = self.get_workspace_from_path(path, workspace_api)
|
219
|
236
|
|
220
|
|
- if basename(dirname(path)) == workspace.label:
|
221
|
|
- try:
|
222
|
|
- return content_api.get_one_by_label_and_parent(basename(path), workspace=workspace)
|
223
|
|
- except:
|
|
237
|
+ try:
|
|
238
|
+ if basename(dirname(path)) == workspace.label:
|
|
239
|
+ return content_api.get_one_by_label_and_parent(
|
|
240
|
+ self.transform_to_bdd(basename(path)),
|
|
241
|
+ workspace=workspace
|
|
242
|
+ )
|
|
243
|
+ else:
|
|
244
|
+ parent = self.get_parent_from_path(path, content_api, workspace_api)
|
|
245
|
+ if parent is not None:
|
|
246
|
+ return content_api.get_one_by_label_and_parent(self.transform_to_bdd(basename(path)), content_parent=parent)
|
224
|
247
|
return None
|
225
|
|
- else:
|
226
|
|
- parent = self.get_parent_from_path(path, content_api, workspace_api)
|
227
|
|
- if parent is not None:
|
228
|
|
- try:
|
229
|
|
- return content_api.get_one_by_label_and_parent(basename(path), content_parent=parent)
|
230
|
|
- except:
|
231
|
|
- return None
|
|
248
|
+ except:
|
232
|
249
|
return None
|
233
|
250
|
|
234
|
251
|
def get_content_from_revision(self, revision: ContentRevisionRO, api:ContentApi):
|
|
@@ -238,320 +255,53 @@ class Provider(DAVProvider):
|
238
|
255
|
return None
|
239
|
256
|
|
240
|
257
|
def get_parent_from_path(self, path, api: ContentApi, workspace_api: WorkspaceApi):
|
|
258
|
+
|
241
|
259
|
return self.get_content_from_path(dirname(path), api, workspace_api)
|
242
|
260
|
|
243
|
261
|
def get_workspace_from_path(self, path: str, api: WorkspaceApi):
|
244
|
262
|
assert path.startswith('/')
|
245
|
263
|
|
246
|
|
- print(path)
|
247
|
264
|
try:
|
248
|
|
- return api.get_one_by_label(path.split('/')[1])
|
|
265
|
+ return api.get_one_by_label(self.transform_to_bdd(path.split('/')[1]))
|
249
|
266
|
except:
|
250
|
267
|
return None
|
251
|
268
|
|
252
|
|
- #########################################################
|
253
|
|
- # Everything that transform path
|
254
|
|
- '''
|
255
|
|
- def from_id_to_name(self, path):
|
256
|
|
- path_ret = ''
|
257
|
|
-
|
258
|
|
- for item_id in path.split('/'):
|
259
|
|
- if item_id == '':
|
260
|
|
- pass
|
261
|
|
- elif path_ret == '':
|
262
|
|
- path_ret += '/' + self.get_workspace({'workspace_id': item_id}).label
|
263
|
|
- else:
|
264
|
|
- path_ret += '/' + self.get_item({'id': item_id}).item_name
|
265
|
|
-
|
266
|
|
- return path_ret
|
267
|
|
-
|
268
|
|
- def from_name_to_id(self, path):
|
269
|
|
- if path == '/':
|
270
|
|
- return '/'
|
271
|
|
- path_ret = ""
|
272
|
|
- last_id = None
|
273
|
|
- workspace_id = None
|
274
|
|
-
|
275
|
|
- for item_name in path.split("/"):
|
276
|
|
- if item_name == '':
|
277
|
|
- pass
|
278
|
|
- elif path_ret == '':
|
279
|
|
- workspace = self.get_workspace({'label': item_name})
|
280
|
|
- if workspace is None:
|
281
|
|
- return None
|
282
|
|
-
|
283
|
|
- workspace_id = workspace.workspace_id
|
284
|
|
- path_ret += '/' + str(workspace_id)
|
285
|
|
- else:
|
286
|
|
- item = self.get_item(
|
287
|
|
- {
|
288
|
|
- 'parent_id': last_id,
|
289
|
|
- 'item_name': item_name,
|
290
|
|
- 'workspace_id': workspace_id,
|
291
|
|
- 'child_revision_id': None
|
292
|
|
- }
|
293
|
|
- )
|
294
|
|
-
|
295
|
|
- if item is None:
|
296
|
|
- return None
|
297
|
|
-
|
298
|
|
- last_id = item.id
|
299
|
|
- path_ret += '/' + str(last_id)
|
300
|
|
-
|
301
|
|
- return path_ret
|
302
|
|
-
|
303
|
|
- #########################################################
|
304
|
|
- # Everything that check things (lol) ...
|
305
|
|
- def has_right(self, username, workspace_id, expected=0):
|
306
|
|
- ret = self.session.query(UserRoleInWorkspace.role).filter(
|
307
|
|
- UserRoleInWorkspace.workspace_id == workspace_id,
|
308
|
|
- User.user_id == UserRoleInWorkspace.user_id,
|
309
|
|
- User.display_name == username
|
310
|
|
- ).one_or_none()
|
311
|
|
-
|
312
|
|
- return ret is not None and role[ret.role] >= expected
|
313
|
|
-
|
314
|
|
- def exist_revision(self, item_name, item_id):
|
315
|
|
- return self.get_item({'id': item_id, 'item_name': item_name}) is not None
|
316
|
|
-
|
317
|
|
- @staticmethod
|
318
|
|
- def is_history(path):
|
319
|
|
- return normpath(path).endswith('.history')
|
320
|
|
-
|
321
|
|
- #########################################################
|
322
|
|
- # Everything that goes with "delete"
|
323
|
|
- def delete_item(self, element):
|
324
|
|
- self.session.delete(element)
|
325
|
|
- self.session.commit()
|
326
|
|
-
|
327
|
|
- #########################################################
|
328
|
|
- # Everything that goes with "add"
|
329
|
|
- def add_item(self, item_name, item_type, workspace_id, parent_id=None, parent_revision_id=None,
|
330
|
|
- child_revision_id=None, item_content=None, created=None, updated=None):
|
331
|
|
-
|
332
|
|
- item = ItemRevision(
|
333
|
|
- item_name=to_unicode(item_name),
|
334
|
|
- item_type=to_unicode(item_type),
|
335
|
|
- item_content=item_content,
|
336
|
|
- workspace_id=workspace_id,
|
337
|
|
- parent_id=parent_id,
|
338
|
|
- created=created,
|
339
|
|
- updated=updated,
|
340
|
|
- parent_revision_id=parent_revision_id,
|
341
|
|
- child_revision_id=child_revision_id
|
342
|
|
- )
|
343
|
|
-
|
344
|
|
- self.session.add(item)
|
345
|
|
- self.session.commit()
|
346
|
|
-
|
347
|
|
- return item
|
348
|
|
-
|
349
|
|
- def add_workspace(self, environ, label):
|
350
|
|
- workspace = Workspace(label=label)
|
351
|
|
-
|
352
|
|
- self.session.add(workspace)
|
353
|
|
-
|
354
|
|
- user = self.get_user_with_name(environ['http_authenticator.username'])
|
355
|
|
-
|
356
|
|
- user_workspace = UserRoleInWorkspace(
|
357
|
|
- role='WORKSPACE_MANAGER',
|
358
|
|
- workspace_id=workspace.workspace_id,
|
359
|
|
- user_id=user.user_id
|
360
|
|
- )
|
361
|
|
-
|
362
|
|
- self.session.add(user_workspace)
|
363
|
|
- self.session.commit()
|
364
|
|
-
|
365
|
|
- return workspace
|
366
|
|
-
|
367
|
|
- #########################################################
|
368
|
|
- # Everything that goes with "set"
|
369
|
|
- def set_workspace_label(self, workspace, label):
|
370
|
|
- workspace.label = label
|
371
|
|
- self.session.commit()
|
372
|
|
-
|
373
|
|
- #########################################################
|
374
|
|
- # Everything that goes with "get"
|
375
|
|
- def get_all_revisions_from_item(self, item, only_id=False):
|
376
|
|
- ret = []
|
377
|
|
- current_item = item
|
378
|
|
- while current_item is not None:
|
379
|
|
- if only_id:
|
380
|
|
- ret.insert(0,current_item.id)
|
381
|
|
- else:
|
382
|
|
- ret.insert(0,current_item)
|
383
|
|
-
|
384
|
|
- current_item = self.get_item(
|
385
|
|
- {
|
386
|
|
- 'child_revision_id': current_item.id
|
387
|
|
- }
|
388
|
|
- )
|
389
|
|
-
|
390
|
|
- return ret
|
391
|
|
-
|
392
|
|
- def get_item(self, keys_dict):
|
393
|
|
- query = self.session.query(ItemRevision)
|
394
|
|
-
|
395
|
|
- for key, value in keys_dict.items():
|
396
|
|
- query = query.filter(getattr(ItemRevision, key) == value)
|
397
|
|
- return query.first()
|
398
|
|
-
|
399
|
|
- def get_item_children(self, item_id):
|
400
|
|
- items_result = self.session.query(ItemRevision.id).filter(
|
401
|
|
- ItemRevision.parent_id == item_id,
|
402
|
|
- ItemRevision.child_revision_id.is_(None)
|
403
|
|
- )
|
404
|
|
-
|
405
|
|
- ret_id = []
|
406
|
|
- for item in items_result:
|
407
|
|
- ret_id.append(item.id)
|
408
|
|
-
|
409
|
|
- return ret_id
|
410
|
|
-
|
411
|
|
- def get_workspace_id_from_path(self, path):
|
412
|
|
- return int(self.get_id_from_path('/' + path.split('/')[1]))
|
413
|
|
-
|
414
|
|
- def get_workspace_children_id(self, workspace):
|
415
|
|
- items_result = self.session.query(ItemRevision.id).filter(
|
416
|
|
- ItemRevision.parent_id.is_(None),
|
417
|
|
- ItemRevision.workspace_id == workspace.workspace_id
|
418
|
|
- )
|
419
|
|
-
|
420
|
|
- ret = []
|
421
|
|
- for item in items_result:
|
422
|
|
- ret.append(item.id)
|
423
|
|
-
|
424
|
|
- return ret
|
425
|
|
-
|
426
|
|
- # on workspaces
|
427
|
|
- def get_workspace(self, keys_dict):
|
428
|
|
- query = self.session.query(Workspace)
|
429
|
|
-
|
430
|
|
- for key, value in keys_dict.items():
|
431
|
|
- query = query.filter(getattr(Workspace, key) == value)
|
432
|
|
- return query.one_or_none()
|
433
|
|
-
|
434
|
|
- def get_all_workspaces(self, only_name=False):
|
435
|
|
- retlist = []
|
436
|
|
- for workspace in self.session.query(Workspace).all():
|
437
|
|
- if only_name:
|
438
|
|
- retlist.append(workspace.label)
|
439
|
|
- else:
|
440
|
|
- retlist.append(workspace)
|
441
|
|
-
|
442
|
|
- return retlist
|
443
|
|
-
|
444
|
|
- # on users
|
445
|
|
- def get_user_with_name(self, username):
|
446
|
|
- return self.session.query(User).filter(
|
447
|
|
- User.display_name == username
|
448
|
|
- ).one_or_none()
|
449
|
|
-
|
450
|
|
- # on path
|
451
|
|
- def get_id_from_path(self, path):
|
452
|
|
- path_id = self.from_name_to_id(path)
|
453
|
|
-
|
454
|
|
- if path_id == '/':
|
455
|
|
- return None
|
456
|
|
- else:
|
457
|
|
- return int(basename(path_id))
|
458
|
|
-
|
459
|
|
- def get_parent_id_from_path(self, path):
|
460
|
|
- return self.get_id_from_path(dirname(path))
|
461
|
|
-
|
462
|
|
- #########################################################
|
463
|
|
- # Everything that goes with "move"
|
464
|
|
- def move_item(self, item, destpath):
|
465
|
|
- path = normpath(destpath)
|
466
|
|
-
|
467
|
|
- if dirname(dirname(path)) == '/':
|
468
|
|
- new_parent = None
|
469
|
|
- else:
|
470
|
|
- new_parent = self.get_parent_id_from_path(path)
|
471
|
|
-
|
472
|
|
- item.parent_id = new_parent
|
473
|
|
- item.workspace_id = self.get_workspace_id_from_path(path)
|
474
|
|
- item.item_name = basename(path)
|
475
|
|
- self.session.commit()
|
476
|
|
-
|
477
|
|
- def move_all_revisions(self, item, destpath):
|
478
|
|
- path = normpath(destpath)
|
479
|
|
- new_parent = self.get_parent_id_from_path(path)
|
480
|
|
- new_workspace = self.get_workspace_id_from_path(destpath)
|
481
|
|
-
|
482
|
|
- items = self.get_all_revisions_from_item(item)
|
483
|
|
-
|
484
|
|
- for current_item in items:
|
485
|
|
- current_item.parent_id = new_parent
|
486
|
|
- current_item.workspace_id = new_workspace
|
487
|
|
-
|
488
|
|
- new_name = basename(normpath(destpath))
|
489
|
|
-
|
490
|
|
- new_item = self.add_item(
|
491
|
|
- item_name=new_name,
|
492
|
|
- item_type=item.item_type,
|
493
|
|
- workspace_id=item.workspace_id,
|
494
|
|
- parent_id=item.parent_id,
|
495
|
|
- parent_revision_id=item.id,
|
496
|
|
- child_revision_id=None,
|
497
|
|
- item_content=item.item_content,
|
498
|
|
- created=item.created,
|
499
|
|
- updated=datetime.now()
|
500
|
|
- )
|
501
|
|
-
|
502
|
|
- item.child_revision_id = new_item.id
|
503
|
|
-
|
504
|
|
- self.session.commit()
|
505
|
|
-
|
506
|
|
- #########################################################
|
507
|
|
- # Everything that goes with "copy"
|
508
|
|
- def copy_item(self, item, destpath):
|
509
|
|
- path = normpath(destpath)
|
510
|
|
-
|
511
|
|
- new_parent = self.get_parent_id_from_path(path)
|
512
|
|
- new_workspace = self.get_workspace_id_from_path(path)
|
513
|
|
- items = self.get_all_revisions_from_item(item)
|
514
|
|
-
|
515
|
|
- first = True
|
516
|
|
- last_item = None
|
517
|
|
-
|
518
|
|
- for current_item in items:
|
519
|
|
- new_item = self.add_item(
|
520
|
|
- item_name=current_item.item_name,
|
521
|
|
- item_type=current_item.item_type,
|
522
|
|
- workspace_id=new_workspace,
|
523
|
|
- parent_id=new_parent,
|
524
|
|
- parent_revision_id=None,
|
525
|
|
- child_revision_id=None,
|
526
|
|
- item_content=current_item.item_content,
|
527
|
|
- created=current_item.created,
|
528
|
|
- updated=current_item.updated
|
529
|
|
- )
|
530
|
|
-
|
531
|
|
- if not first:
|
532
|
|
- last_item.child_revision_id = new_item.id
|
533
|
|
- new_item.parent_revision_id = last_item.id
|
534
|
|
-
|
535
|
|
- first = False
|
536
|
|
- last_item = new_item
|
537
|
|
-
|
538
|
|
- new_name = basename(destpath)
|
539
|
|
-
|
540
|
|
- new_item = self.add_item(
|
541
|
|
- item_name=new_name,
|
542
|
|
- item_type=item.item_type,
|
543
|
|
- workspace_id=new_workspace,
|
544
|
|
- parent_id=new_parent,
|
545
|
|
- parent_revision_id=last_item.id,
|
546
|
|
- child_revision_id=None,
|
547
|
|
- item_content=item.item_content,
|
548
|
|
- created=datetime.now(),
|
549
|
|
- updated=datetime.now()
|
550
|
|
- )
|
551
|
|
-
|
552
|
|
- last_item.child_revision_id = new_item.id
|
|
269
|
+ def transform_to_display(self, string):
|
|
270
|
+ _TO_DISPLAY = {
|
|
271
|
+ # '/':'⁄',
|
|
272
|
+ '\\': '⧹',
|
|
273
|
+ ':': '∶',
|
|
274
|
+ '*': '∗',
|
|
275
|
+ '?': 'ʔ',
|
|
276
|
+ '"': 'ʺ',
|
|
277
|
+ '<': '❮',
|
|
278
|
+ '>': '❯',
|
|
279
|
+ '|': '∣'
|
|
280
|
+ }
|
|
281
|
+
|
|
282
|
+ for key, value in _TO_DISPLAY.items():
|
|
283
|
+ string = string.replace(key, value)
|
|
284
|
+
|
|
285
|
+ return string
|
|
286
|
+
|
|
287
|
+ def transform_to_bdd(self, string):
|
|
288
|
+ _TO_BDD = {
|
|
289
|
+ # '⁄': '/',
|
|
290
|
+ '⧹': '\\',
|
|
291
|
+ '∶': ':',
|
|
292
|
+ '∗': '*',
|
|
293
|
+ 'ʔ': '?',
|
|
294
|
+ 'ʺ': '"',
|
|
295
|
+ '❮': '<',
|
|
296
|
+ '❯': '>',
|
|
297
|
+ '∣': '|'
|
|
298
|
+ }
|
|
299
|
+
|
|
300
|
+ for key, value in _TO_BDD.items():
|
|
301
|
+ string = string.replace(key, value)
|
|
302
|
+
|
|
303
|
+ return string
|
553
|
304
|
|
554
|
|
- self.session.commit()'''
|
555
|
305
|
|
556
|
306
|
"""
|
557
|
307
|
|
|
@@ -597,8 +347,12 @@ class Provider(DAVProvider):
|
597
|
347
|
'ext_servers': ['cherrypy-bundled', 'wsgidav']
|
598
|
348
|
},
|
599
|
349
|
'http_authenticator.realm': '/',
|
600
|
|
- 'HTTP_AUTHORIZATION': 'Digest username="admin@admin.admin", realm="/", nonce="=", uri="/nouveau/", algorithm=MD5, response="9c78c484263409b3385ead95ea7bf65b", '
|
601
|
|
- 'cnonce="MHgyMzNkZjkwOjQ4OTU6MTQ2OTc3OTI1NQ==", nc=00000471, qop=auth',
|
|
350
|
+ 'HTTP_AUTHORIZATION': 'Digest username="admin@admin.admin",
|
|
351
|
+ realm="/", nonce="=",
|
|
352
|
+ uri="/nouveau/",
|
|
353
|
+ algorithm=MD5,
|
|
354
|
+ response="9c78c484263409b3385ead95ea7bf65b", '
|
|
355
|
+ 'cnonce="MHgyMzNkZjkwOjQ4OTU6MTQ2OTc3OTI1NQ==", nc=00000471, qop=auth',
|
602
|
356
|
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
|
603
|
357
|
'HTTP_USER_AGENT': 'gvfs/1.22.2', 'wsgidav.debug_break': False,
|
604
|
358
|
'HTTP_CONNECTION': 'Keep-Alive', 'SERVER_PORT': '3030', 'CONTENT_LENGTH': '235', 'HTTP_HOST': '127.0.0.1:3030', 'REQUEST_METHOD': 'PROPFIND', 'HTTP_APPLY_TO_REDIRECT_REF': 'T', 'SERVER_NAME': 'WsgiDAV/3.0.0pre1 CherryPy/3.2.4 Python/3.4.2', 'wsgi.errors': <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>, 'wsgi.url_scheme': 'http', 'user': <User: email='admin@admin.admin', display='Global manager'>, 'HTTP_ACCEPT_LANGUAGE': 'en-us, en;q=0.9', 'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1', 'REMOTE_PORT': '48375', 'CONTENT_TYPE': 'application/xml', 'SCRIPT_NAME': '', 'wsgi.input': <wsgidav.server.cherrypy.wsgiserver.wsgiserver3.KnownLengthRFile object at 0x7fbc8410ce48>, 'wsgidav.username': 'admin@admin.admin', 'http_authenticator.username': 'admin@admin.admin', 'wsgidav.provider': Provider, 'PATH_INFO': '/nouveau/', 'HTTP_DEPTH': '1', 'SERVER_SOFTWARE': 'WsgiDAV/3.0.0pre1 CherryPy/3.2.4 Python/3.4.2 Server'}
|