Univention Bugzilla – Bug 32667
univention-lib needs python module for url requests
Last modified: 2017-08-08 07:11:26 CEST
umc-module-appcenter umc-module-udm umc-module-sysinfo all send data to external sources. This involves usage of a lot of urllib and urllib2 functions. Furthermore it is important to respect ucr.get('proxy/http') which is not done automatically by urllib and easy to be forgotten. It would be nice to add a (thin) urllib wrapper to take care of all that and use it in those three modules (and other places yet to come). It should be easy to add data to a request and also to add an attachment.
Currently univention-system-info overwrites some urllib2 functions. Whole methods were copied, taken from python 2.5 or earlier. This makes it impossible to use timeout as parameter (new in python 2.6). This starts to get annoying. See Bug#31056 Comment 18
Still relevant?
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.2. UCS 3.2 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.