From c79727e6e2f717e44d2b8d5a60825db8ed6e5d66 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Mon, 18 Jan 2021 17:16:28 +0000
Subject: [PATCH] Encoding bei POST

---
 src/java/de/uhilger/filecms/api/Api.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/java/de/uhilger/filecms/api/Api.java b/src/java/de/uhilger/filecms/api/Api.java
index 507c2ae..b26537e 100644
--- a/src/java/de/uhilger/filecms/api/Api.java
+++ b/src/java/de/uhilger/filecms/api/Api.java
@@ -46,13 +46,18 @@
   public static final String WBX_DATA_PATH = "daten/";
   public static final String PUB_DIR_PATH = "www/";
   public static final String HOME_DIR_PATH = "home/";
+  public static final String DAV_DIR_PATH = "dav/";
+
   public static final String PUB_DIR_NAME = "Oeffentlich";
   //public static final String HOME_DIR_NAME = "Persoenlicher Ordner";
   public static final String HOME_DIR_NAME = "Persoenlich";
+  public static final String DAV_DIR_NAME = "Austausch";
+
   public static final String WBX_ADMIN_ROLE = "wbxAdmin";
   
   public static final String WBX_BASE = "$basis";
   public static final String WBX_DATA = "$daten";
+  public static final String DAV_DATA = "$dav";
     
   /**
    * Einen relativen Pfad in einen absoluten Pfad der WebBox 
@@ -78,6 +83,9 @@
     } else if(relPath.startsWith(HOME_DIR_NAME)) {
       targetPath = HOME_DIR_PATH + getUserName() + relPath.substring(HOME_DIR_NAME.length());
       targetDir = new File(getBase().getAbsolutePath(), targetPath);
+    } else if(relPath.startsWith(DAV_DIR_NAME)) {
+      targetPath = DAV_DIR_PATH + /* getUserName() +*/ relPath.substring(DAV_DIR_NAME.length());
+      targetDir = new File(getBase().getAbsolutePath(), targetPath);
     } else if(getRequest().isUserInRole(WBX_ADMIN_ROLE)) {
       logger.fine("in admin role");
       if(relPath.startsWith(WBX_BASE)) {

--
Gitblit v1.9.3