Skip to content

Commit

Permalink
remove backend forbidden char list
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <alper_ozturk@proton.me>
  • Loading branch information
alperozturk96 committed Jul 8, 2024
1 parent a4abb90 commit 3eb043f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

/**
* Get the Capabilities from the server
Expand Down Expand Up @@ -447,13 +445,6 @@ private OCCapability parseResponse(String response) throws JSONException {

// region compatible file names
if (respFiles.has(FORBIDDEN_FILENAME_CHARACTERS)) {
JSONArray forbiddenCharactersArray = respFiles.getJSONArray(FORBIDDEN_FILENAME_CHARACTERS);
Set<String> forbiddenCharacterList = new HashSet<>();
for (int i = 0; i < forbiddenCharactersArray.length(); i++) {
String element = forbiddenCharactersArray.getString(i);
forbiddenCharacterList.add(element);
}
capability.setForbiddenFilenameCharacterList(forbiddenCharacterList);
capability.setForbiddenFilenameCharacters(CapabilityBooleanType.TRUE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class OCCapability {
var forbiddenFilenameCharacters = CapabilityBooleanType.UNKNOWN
var forbiddenFilenames = CapabilityBooleanType.UNKNOWN
var forbiddenFilenameExtension = CapabilityBooleanType.UNKNOWN
var forbiddenFilenameCharacterList: MutableSet<String> = mutableSetOf()

// Etag for capabilities
var etag: String? = ""
Expand Down

0 comments on commit 3eb043f

Please sign in to comment.