Skip to content

Commit b3cefe7

Browse files
committed
put json for capabilities.jsp in one single line
1 parent d66a9bd commit b3cefe7

File tree

1 file changed

+2
-164
lines changed

1 file changed

+2
-164
lines changed
Lines changed: 2 additions & 164 deletions
Original file line numberDiff line numberDiff line change
@@ -1,166 +1,4 @@
11
<%@ page language="java" contentType="application/json" pageEncoding="UTF-8"%>
2-
<%@ page import="com.logicaldoc.core.SystemInfo" %>
2+
<%@ page import="com.logicaldoc.core.*" %>
33
<%@ include file="setcookie.jsp" %>
4-
{
5-
"lds":{
6-
"meta":{
7-
"status":"ok",
8-
"statuscode":200,
9-
"message":"OK",
10-
"totalitems":"",
11-
"itemsperpage":""
12-
},
13-
"data":{
14-
"version":{
15-
"major":<%=SystemInfo.get().getMajor()%>,
16-
"minor":<%=SystemInfo.get().getMinor()%>,
17-
"micro":0,
18-
"string":"<%=SystemInfo.get().getRelease()%>",
19-
"edition":"",
20-
"product":"LogicalDOC"
21-
},
22-
"capabilities":{
23-
"core":{
24-
"pollinterval":30000,
25-
"webdav-root":"\/webdav\/store",
26-
"status":{
27-
"installed":true,
28-
"maintenance":false,
29-
"needsDbUpgrade":false,
30-
"version":"<%=SystemInfo.get().getRelease()%>",
31-
"versionstring":"<%=SystemInfo.get().getRelease()%>",
32-
"edition":"",
33-
"productname":"LogicalDOC",
34-
"product":"LogicalDOC",
35-
"hostname":"3ca5b260b28b"
36-
},
37-
"support-url-signing":true
38-
},
39-
"files":{
40-
"app_providers":[
41-
{
42-
"enabled":false,
43-
"version":"1.1.0",
44-
"apps_url":"\/app\/list",
45-
"open_web_url":"\/app\/open-with-web",
46-
"new_url":"\/app\/new"
47-
}
48-
],
49-
"privateLinks":false,
50-
"privateLinksDetailsParam":false,
51-
"bigfilechunking":true,
52-
"blacklisted_files":[
53-
".htaccess"
54-
],
55-
"blacklisted_files_regex":"\\.(part|filepart)$",
56-
"favorites":true,
57-
"file_locking_support":true,
58-
"file_locking_enable_file_action":false,
59-
"undelete":true,
60-
"versioning":true
61-
},
62-
"checksums":{
63-
"supportedTypes":[
64-
"SHA1"
65-
],
66-
"preferredUploadType":"SHA1"
67-
},
68-
"dav":{
69-
"chunking":"1.0",
70-
"reports":[
71-
"search-files"
72-
],
73-
"propfind":{
74-
"depth_infinity":false
75-
},
76-
"trashbin":"1.0"
77-
},
78-
"files_sharing":{
79-
"api_enabled":false,
80-
"public":{
81-
"enabled":false,
82-
"password":{
83-
"enforced_for":{
84-
"read_only":false,
85-
"read_write":false,
86-
"upload_only":false,
87-
"read_write_delete":false
88-
},
89-
"enforced":false
90-
},
91-
"roles_api":false,
92-
"can_create_public_link":false,
93-
"expire_date":{
94-
"enabled":false
95-
},
96-
"send_mail":false,
97-
"social_share":false,
98-
"upload":true,
99-
"multiple":true,
100-
"supports_upload_only":true,
101-
"defaultPublicLinkShareName":"Public link"
102-
},
103-
"user":{
104-
"send_mail":false,
105-
"profile_picture":true,
106-
"expire_date":{
107-
"enabled":false
108-
}
109-
},
110-
"group":{
111-
"expire_date":{
112-
"enabled":false
113-
}
114-
},
115-
"remote":{
116-
"expire_date":{
117-
"enabled":false
118-
}
119-
},
120-
"resharing":false,
121-
"group_sharing":false,
122-
"auto_accept_share":false,
123-
"share_with_group_members_only":false,
124-
"share_with_membership_groups_only":false,
125-
"can_share":false,
126-
"user_enumeration":{
127-
"enabled":false,
128-
"group_members_only":false
129-
},
130-
"default_permissions":31,
131-
"providers_capabilities":{
132-
"ocinternal":{
133-
"user":[
134-
"shareExpiration"
135-
],
136-
"group":[
137-
"shareExpiration"
138-
],
139-
"link":[
140-
"shareExpiration",
141-
"passwordProtected"
142-
]
143-
},
144-
"ocFederatedSharing":{
145-
"remote":[
146-
"shareExpiration"
147-
]
148-
}
149-
},
150-
"federation":{
151-
"outgoing":true,
152-
"incoming":true
153-
},
154-
"search_min_length":2
155-
},
156-
"notifications":{
157-
"ocs-endpoints":[
158-
"list",
159-
"get",
160-
"delete"
161-
]
162-
}
163-
}
164-
}
165-
}
166-
}
4+
{"lds":{"meta":{"status":"ok","statuscode":200,"message":"OK","totalitems":"","itemsperpage":""},"data":{"version":{"major":<%=SystemInfo.get().getMajor()%>,"minor":<%=SystemInfo.get().getMinor()%>,"micro":0,"string":"<%=SystemInfo.get().getRelease()%>","edition":"","product":"LogicalDOC"},"capabilities":{"core":{"pollinterval":60000,"webdav-root":"/webdav/store","status":{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"<%=SystemInfo.get().getRelease()%>","versionstring":"<%=SystemInfo.get().getRelease()%>","edition":"","productname":"LogicalDOC","product":"LogicalDOC","hostname":"3ca5b260b28b"},"support-url-signing":true},"files":{"app_providers":[{"enabled":false,"version":"1.1.0","apps_url":"/android/app-list.jsp","open_web_url":"/android/open-with-web.jsp","new_url":"/android/new.jsp"}],"privateLinks":false,"privateLinksDetailsParam":false,"bigfilechunking":true,"blacklisted_files":[".htaccess"],"blacklisted_files_regex":"\\.(part|filepart)$","favorites":true,"file_locking_support":true,"file_locking_enable_file_action":false,"undelete":true,"versioning":true},"checksums":{"supportedTypes":["SHA1"],"preferredUploadType":"SHA1"},"dav":{"chunking":"1.0","reports":["search-files"],"propfind":{"depth_infinity":false},"trashbin":"1.0"},"files_sharing":{"api_enabled":false,"public":{"enabled":false,"password":{"enforced_for":{"read_only":false,"read_write":false,"upload_only":false,"read_write_delete":false},"enforced":false},"roles_api":false,"can_create_public_link":false,"expire_date":{"enabled":false},"send_mail":false,"social_share":false,"upload":true,"multiple":true,"supports_upload_only":true,"defaultPublicLinkShareName":"Public link"},"user":{"send_mail":false,"profile_picture":true,"expire_date":{"enabled":false}},"group":{"expire_date":{"enabled":false}},"remote":{"expire_date":{"enabled":false}},"resharing":false,"group_sharing":false,"auto_accept_share":false,"share_with_group_members_only":false,"share_with_membership_groups_only":false,"can_share":false,"user_enumeration":{"enabled":false,"group_members_only":false},"default_permissions":31,"providers_capabilities":{"ocinternal":{"user":["shareExpiration"],"group":["shareExpiration"],"link":["shareExpiration","passwordProtected"]},"ocFederatedSharing":{"remote":["shareExpiration"]}},"federation":{"outgoing":true,"incoming":true},"search_min_length":2},"notifications":{"lds-endpoints":["list","get","delete"]}}}}}

0 commit comments

Comments
 (0)