Permalink
Browse files

Broke XMLWriter into pieces: XMLHelper, XMLFilter and serializer Node…

…XML.
  • Loading branch information...
1 parent a28162f commit ba7950ec5034a465ae32ba862da8d18244016efc @cdujeu cdujeu committed Sep 30, 2016
Showing with 612 additions and 649 deletions.
  1. +3 −2 core/src/core/src/pydio/Core/Controller/Controller.php
  2. +0 −527 core/src/core/src/pydio/Core/Controller/XMLWriter.php
  3. +0 −1 core/src/core/src/pydio/Core/Http/Message/JsActionTrigger.php
  4. +7 −2 core/src/core/src/pydio/Core/Http/Message/Message.php
  5. +6 −5 core/src/core/src/pydio/Core/Http/Message/RegistryMessage.php
  6. +4 −2 core/src/core/src/pydio/Core/Http/Message/ReloadMessage.php
  7. +8 −2 core/src/core/src/pydio/Core/Http/Message/UserMessage.php
  8. +3 −2 core/src/core/src/pydio/Core/Http/Response/SerializableResponseStream.php
  9. +3 −3 core/src/core/src/pydio/Core/PluginFramework/Plugin.php
  10. +82 −0 core/src/core/src/pydio/Core/Serializer/NodeXML.php
  11. +53 −0 core/src/core/src/pydio/Core/Serializer/UserXML.php
  12. +111 −0 core/src/core/src/pydio/Core/Utils/Vars/XMLFilter.php
  13. +183 −0 core/src/core/src/pydio/Core/Utils/XMLHelper.php
  14. +2 −2 core/src/plugins/access.ajxp_conf/src/AbstractManager.php
  15. +7 −10 core/src/plugins/access.ajxp_conf/src/PluginsManager.php
  16. +7 −6 core/src/plugins/access.ajxp_conf/src/RepositoriesManager.php
  17. +2 −2 core/src/plugins/access.ajxp_conf/src/RolesManager.php
  18. +2 −2 core/src/plugins/access.ftp/FtpAccessDriver.php
  19. +17 −12 core/src/plugins/access.mysql/MysqlAccessDriver.php
  20. +5 −4 core/src/plugins/action.share/src/ShareCenter.php
  21. +2 −2 core/src/plugins/action.share/src/View/MinisiteRenderer.php
  22. +1 −1 core/src/plugins/authfront.session_login/SessionLoginFrontend.php
  23. +4 −4 core/src/plugins/boot.conf/BootConfLoader.php
  24. +4 −3 core/src/plugins/core.access/src/Model/NodesDiff.php
  25. +33 −11 core/src/plugins/core.access/src/Model/NodesList.php
  26. +1 −0 core/src/plugins/core.ajaxplorer/ajxp_registry.xsd
  27. +4 −3 core/src/plugins/core.conf/AbstractConfDriver.php
  28. +1 −1 core/src/plugins/core.mq/src/MqManager.php
  29. +3 −3 core/src/plugins/gui.ajax/RichClient.php
  30. +44 −30 core/src/plugins/meta.svn/SvnManager.php
  31. +3 −2 core/src/plugins/uploader.html/SimpleUpload.php
  32. +5 −3 core/src/plugins/uploader.html/manifest.xml
  33. +2 −2 core/src/plugins/uploader.plupload/Pluploader.php
@@ -20,6 +20,7 @@
*/
namespace Pydio\Core\Controller;
+use Pydio\Core\Utils\XMLHelper;
use Zend\Diactoros\Response;
use Zend\Diactoros\ServerRequestFactory;
use Psr\Http\Message\ResponseInterface;
@@ -217,7 +218,7 @@ public static function run(ServerRequestInterface $request, &$actionNode = null)
&& $loggedUser->canWrite($ctx->getRepositoryId()."")){
// Special case of "write only" right : return empty listing, no auth error.
$response = new Response();
- $response->getBody()->write(XMLWriter::wrapDocument(""));
+ $response->getBody()->write(XMLHelper::wrapDocument(""));
return $response;
}else{
throw new AuthRequiredException("208");
@@ -387,7 +388,7 @@ private static function handleRequest($callback, ServerRequestInterface &$reques
$request = $request->withParsedBody($httpVars);
if(!empty($result)){
- $response->getBody()->write(XMLWriter::wrapDocument($result));
+ $response->getBody()->write(XMLHelper::wrapDocument($result));
$response = $response->withHeader("Content-type", "text/xml; charset=UTF-8");
}
}
Oops, something went wrong.

0 comments on commit ba7950e

Please sign in to comment.