Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional proxy fix and code-refactoring #29

Open
wants to merge 7 commits into
base: release_5_1_x
Choose a base branch
from

Conversation

Hufschmidt
Copy link

Hallo

uns ist gestern noch ein kleiner Fehler in der Proxy-Implementierung von OnlineArts aufgefallen.
Es fehlte leider die Proxy-Konfiguration für CURL beim upload von Dateien (siehe hier). Dieser PR fixed dies.

Die commits sollten relativ sprechend und sauber formatiert sein, hier aber trotzdem noch mal etwas mehr Informationen:

  • af072fa Mir ist aufgefallen, dass im Quellcode Tabs uns Spaces stark vermischt sind, ich habe das hier mal vereinheitlicht (Tabs), da ich sonst beim editieren und erstellen der Commits (atom und git gui) sonst relativ viel Zeit investieren müsste und so die Codebasis wieder einheitlich ist.
  • 9507fc6 Implementiert eine einheitliche Schnittstelle zum Anfragen von XML-Dokumenten über HTTP mit Proxy-Support.
  • 4820471 und c6162b1 sind kleine Logik-Verbesserungen am Code
  • ef636f2 behebt den eigentlichen Bug der fehlenden Proxy-Konfiguration für den Datei-Upload per CURL
  • 97087dc implementiert alle $context = ...; ... = file_get_contents(); ... = simplexml_load_string(...) Fragmente durch eine sauber gekapselte Implementierung (siehe 9507fc6)
  • c98e314 entfernt den systemweiten libxml-proxy (libxml_set_streams_context), da er dank 9507fc6 und 97087dc nicht mehr notwendig ist. Somit ist ausgeschlossen, dass hierdurch andere Komponenten im ILIAS Ökosystem durch diese globale/systemweite Einstellung beeinträchtigt werden.

Das ganze läuft aktuell auf unserem ILIAS Test- und Produktivsystem ohne Probleme.

* Converted all leading spaces into tabs (1 tab = 4 spaces)
  using `unexpand --tabs=4 --first-only` (smudge) filter.
* Removed trailing whitespaces via `([ ]+)\n -> \n` mapping
* Cleaned indented empty lines via `^([\t ]+\n -> \n` mapping
* Added trailing newline to all files
Note:
The difference to ilAdobeConnectXMLAPI->proxy() is that we do *not*
set a system-wide xlibml-proxy (libxml_set_streams_context) that
might interfere with other parts of the ILIAS ecosystem, but build
a request-based proxy-context!
Note:
This is also a preparation for replacing curl_init() with
centralized curl-handler from ilAdobeConnectServer instead!
…alls with centralized getRemoteXML from ilAdobeConnectServer
…or of per-request context in ilAdobeConnectServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants