Author: lslezak Date: Wed Mar 25 17:08:20 2009 New Revision: 56396 URL: http://svn.opensuse.org/viewcvs/yast?rev=56396&view=rev Log: - Fixed Pkg::SourceURL() - remove "credentials" query from URL after obtaining the credentials from CredentialManager - 2.17.38 Modified: branches/SuSE-Code-11-Branch/pkg-bindings/VERSION branches/SuSE-Code-11-Branch/pkg-bindings/package/yast2-pkg-bindings.changes branches/SuSE-Code-11-Branch/pkg-bindings/src/Source_Get.cc Modified: branches/SuSE-Code-11-Branch/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/pkg-bindings/VERSION?rev=56396&r1=56395&r2=56396&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/pkg-bindings/VERSION (original) +++ branches/SuSE-Code-11-Branch/pkg-bindings/VERSION Wed Mar 25 17:08:20 2009 @@ -1 +1 @@ -2.17.37 +2.17.38 Modified: branches/SuSE-Code-11-Branch/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/pkg-bindings/package/yast2-pkg-bindings.changes?rev=56396&r1=56395&r2=56396&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ branches/SuSE-Code-11-Branch/pkg-bindings/package/yast2-pkg-bindings.changes Wed Mar 25 17:08:20 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Mar 25 16:55:36 CET 2009 - lslezak@suse.cz + +- Fixed Pkg::SourceURL() - remove "credentials" query from URL + after obtaining the credentials from CredentialManager +- 2.17.38 + +------------------------------------------------------------------- Fri Mar 20 15:04:10 CET 2009 - lslezak@suse.cz - Fixed Pkg::SourceURL() - read username and password using Modified: branches/SuSE-Code-11-Branch/pkg-bindings/src/Source_Get.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/pkg-bindings/src/Source_Get.cc?rev=56396&r1=56395&r2=56396&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/pkg-bindings/src/Source_Get.cc (original) +++ branches/SuSE-Code-11-Branch/pkg-bindings/src/Source_Get.cc Wed Mar 25 17:08:20 2009 @@ -211,6 +211,17 @@ { y2warning("Invalid authentication data, returning URL without username and password"); } + + // does the url contain credentials query? + zypp::url::ParamMap params = url.getQueryStringMap(); + zypp::url::ParamMap::iterator map_it = params.find("credentials"); + + if (map_it != params.end()) + { + y2milestone("Removing credentials query from URL"); + params.erase(map_it); + url.setQueryStringMap(params); + } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org