Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 3014bf4

Browse files
committed
Merge remote-tracking branch 'remote/develop' into develop
Conflicts: core/src/plugins/access.ajxp_home/res/i18n/de.php
2 parents d240a16 + dc85a5c commit 3014bf4

File tree

37 files changed

+399
-1189
lines changed

37 files changed

+399
-1189
lines changed

core/src/core/doc/api2.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/src/core/src/lib/pclzip.lib.php

Lines changed: 114 additions & 29 deletions
Large diffs are not rendered by default.

core/src/core/src/pydio/Core/Http/Middleware/SapiMiddleware.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,14 @@ public function emitResponse(ServerRequestInterface $request, ResponseInterface
130130
$response = $response->withHeader("Content-type", "text/xml; charset=UTF-8");
131131
}
132132
}
133+
if($response === false){
134+
return;
135+
}
133136

134-
if($response !== false && ($response->getBody()->getSize() || $response instanceof \Zend\Diactoros\Response\EmptyResponse) || $response->getStatusCode() != 200) {
137+
if( $response->getBody()->getSize() === null
138+
|| $response->getBody()->getSize() > 0
139+
|| $response instanceof \Zend\Diactoros\Response\EmptyResponse
140+
|| $response->getStatusCode() != 200) {
135141
$emitter = new SapiEmitter();
136142
ShutdownScheduler::setCloseHeaders($response);
137143
$emitter->emit($response);

core/src/core/src/pydio/Core/Http/Response/AsyncResponseStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function detach()
100100
public function getSize()
101101
{
102102
// Return a non-null size if there's a pending callback.
103-
return (isSet($this->callback) && !$this->callbackExecuted ? 1 : null);
103+
return null;//(isSet($this->callback) && !$this->callbackExecuted ? 1 : null);
104104
}
105105

106106
/**

core/src/core/src/pydio/Core/Http/Rest/ApiRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct($base, $cacheOptions = []){
6666
*/
6767
public function configureRoutes(\FastRoute\RouteCollector &$r){
6868

69-
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_DOCS_FOLDER . "/api2.json"), true);
69+
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_PLUGINS_FOLDER . "/core.ajaxplorer/routes/api2.json"), true);
7070
foreach ($configObject["paths"] as $path => $methods){
7171
foreach($methods as $method => $apiData){
7272
if(preg_match('/\{path\}/', $path)){

core/src/core/src/pydio/Core/Http/TopLevelRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct($cacheOptions = []){
6969
public function configureRoutes($base, RouteCollector &$r){
7070

7171
$allMethods = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'TRACE', 'OPTIONS', 'CONNECT', 'PATCH', 'PROPFIND', 'PROPPATCH', 'MKCOL', 'COPY', 'MOVE', 'LOCK', 'UNLOCK'];
72-
$file = AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/core.ajaxplorer/routes.json";
72+
$file = AJXP_INSTALL_PATH."/".AJXP_PLUGINS_FOLDER."/core.ajaxplorer/routes/main.json";
7373
$textContent = file_get_contents($file);
7474
$textContent = str_replace("%PUBLIC_BASEURI%", ConfService::getGlobalConf("PUBLIC_BASEURI"), $textContent);
7575
$textContent = str_replace("%WEBDAV_BASEURI%", ConfService::getGlobalConf("WEBDAV_BASEURI"), $textContent);

core/src/core/src/pydio/Core/Http/Wopi/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct($base, $cacheOptions = []){
6464
*/
6565
public function configureRoutes(RouteCollector &$r){
6666

67-
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_DOCS_FOLDER . "/wopi.json"), true);
67+
$configObject = json_decode(file_get_contents(AJXP_INSTALL_PATH . "/" . AJXP_PLUGINS_FOLDER . "/core.ajaxplorer/routes/wopi.json"), true);
6868

6969
foreach ($configObject["paths"] as $path => $methods){
7070
foreach($methods as $method => $apiData){

core/src/plugins/access.ajxp_conf/ajxp_confActions.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@
629629
<div id="enterprise_advertise_block" box_width="70%" box_padding="0" box_height="80%" box_resize="true" style="height:100%;" class="vertical_layout">
630630
<iframe style="width: 100%; height: 90%; border: 0px solid #ddd;" class="vertical_fit"></iframe>
631631
<div style="padding:20px;">&nbsp;</div>
632+
<style>.form-enterprise_advertise_block .dialogTitle {display:none;}</style>
632633
</div>
633634
]]></clientForm>
634635
<clientListener name="init"><![CDATA[

core/src/plugins/access.ajxp_conf/src/ConfAccessDriver.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ public function displayEnterprise(ServerRequestInterface $requestInterface, Resp
430430
file_put_contents($touchFile, time());
431431
}else{
432432
$responseInterface = new JsonResponse(["display" => false]);
433-
echo json_encode(["display" => false]);
434433
}
435434
}else{
436435
$responseInterface = new JsonResponse(["display" => true]);

core/src/plugins/access.ajxp_home/res/i18n/ca.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,5 @@
9393
"75"=> "Search all files...",
9494
"76" => "Access the %1 through the top-right menu",
9595
"77" => "admin dashboard",
96+
"78" => "Pick a target workspace",
9697
);

0 commit comments

Comments
 (0)