[yast-commit] r66136 - in /trunk/ca-management: package/yast2-ca-management.changes src/ca_mgm_auto.ycp src/ca_mgm_proposal.ycp src/crlExport.ycp
Author: mcalmer
Date: Thu Sep 29 11:03:02 2011
New Revision: 66136
URL: http://svn.opensuse.org/viewcvs/yast?rev=66136&view=rev
Log:
quote pathes used in target.bash (bnc#266220)
Modified:
trunk/ca-management/package/yast2-ca-management.changes
trunk/ca-management/src/ca_mgm_auto.ycp
trunk/ca-management/src/ca_mgm_proposal.ycp
trunk/ca-management/src/crlExport.ycp
Modified: trunk/ca-management/package/yast2-ca-management.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ca-management/package/yast2-ca-management.changes?rev=66136&r1=66135&r2=66136&view=diff
==============================================================================
--- trunk/ca-management/package/yast2-ca-management.changes (original)
+++ trunk/ca-management/package/yast2-ca-management.changes Thu Sep 29 11:03:02 2011
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Thu Sep 29 11:01:16 CEST 2011 - mc@suse.de
+
+- quote pathes used in target.bash (bnc#266220)
+
+-------------------------------------------------------------------
Mon Sep 26 14:44:47 CEST 2011 - visnov@suse.cz
- version 2.21.7
Modified: trunk/ca-management/src/ca_mgm_auto.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ca-management/src/ca_mgm_auto.ycp?rev=66136&r1=66135&r2=66136&view=diff
==============================================================================
--- trunk/ca-management/src/ca_mgm_auto.ycp (original)
+++ trunk/ca-management/src/ca_mgm_auto.ycp Thu Sep 29 11:03:02 2011
@@ -48,13 +48,13 @@
list<string> name_list = maplist ( string k, string v,
country_map, { return v; });
- name_list = sort (name_list);
-
+ name_list = sort (name_list);
+
foreach (string name, name_list, ``{
result = add (result, `item (`id (country_index[name]:""), name ,
CaMgm::autoYaSTSettings["country"]:Timezone::GetCountryForTimezone("") == country_index[name]:"") );
});
- return result;
+ return result;
}
@@ -73,7 +73,7 @@
Here, change the settings of this CA and certificate or import a CA and certificate from a file.
</p>
");
-
+
/* Initialization dialog contents */
Wizard::CreateDialog();
@@ -86,7 +86,7 @@
_("Import Common CA and Certificate"),
CaMgm::autoYaSTSettings["importCertificate"]:true)),
`HBox ( `HSpacing (3),
- `VBox(
+ `VBox(
`HBox (
`HWeight(2, `TextEntry( `id (`pathCert), _("&Path of Certificate"),
CaMgm::autoYaSTSettings["pathCertificate"]:"")),
@@ -97,42 +97,42 @@
)
),
`HBox(`HWeight (1,`Password(`id(`pw3), `opt(`hstretch), _("&Password:"), CaMgm::autoYaSTSettings["password"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`Password(`id(`pw4), `opt(`hstretch), _("Co&nfirm Password"), confirmPassword))
)
)
- ),
+ ),
`Left(`RadioButton(`id(`notImport), `opt( `notify),
_("Generate Common CA and Certificate"),
!(CaMgm::autoYaSTSettings["importCertificate"]:false))),
`HBox(`HSpacing (3),
- `VBox(
+ `VBox(
`HBox(`HWeight (1,`TextEntry( `id (`id_CAName), _("&CA Name:"),
CaMgm::autoYaSTSettings["CAName"]:"YaST_Default_CA")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`TextEntry( `id (`id_commonName), _("&Common Name:"),
CaMgm::autoYaSTSettings["ca_commonName"]:""))
),
`HBox(`HWeight (1,`TextEntry(`id(`email), _("E-Mail"),
CaMgm::autoYaSTSettings["server_email"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`ComboBox( `id (`id_country), `opt(`editable), _("C&ountry:"),
getAutoCountryList()))
- ),
+ ),
`HBox(`HWeight (1,`TextEntry( `id (`id_organisation), _("O&rganization:"),
CaMgm::autoYaSTSettings["organisation"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`TextEntry( `id (`id_organisationUnit), _("Or&ganizational Unit:"),
CaMgm::autoYaSTSettings["organisationUnit"]:""))
),
`HBox(`HWeight (1,`TextEntry( `id (`id_locality), _("Loca&lity:"),
CaMgm::autoYaSTSettings["locality"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`TextEntry( `id (`id_state), _("&State:"),
CaMgm::autoYaSTSettings["state"]:""))
),
`HBox(`HWeight (1,`Password(`id(`pw1), `opt(`hstretch), _("&Password:"), CaMgm::autoYaSTSettings["password"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`Password(`id(`pw2), `opt(`hstretch), _("Co&nfirm Password"), confirmPassword))
),
`Left(`CheckBox(`id(`localServerName), `opt(`notify),
@@ -140,7 +140,7 @@
CaMgm::autoYaSTSettings["takeLocalServerName"]:true)),
`HBox(`HWeight (1,`TextEntry( `id (`id_serverName), _("&Server Name:"),
CaMgm::autoYaSTSettings["server_commonName"]:"")),
- `HSpacing(2),
+ `HSpacing(2),
`HWeight (1,`Empty())
)
)
@@ -148,15 +148,15 @@
)
)
);
-
+
Wizard::SetContents (caption, contents, help_text, false, true);
Wizard::SetNextButton(`next, Label::FinishButton() );
-
+
// Get the user input.
//
any ret = nil;
- repeat
+ repeat
{
if (UI::QueryWidget(`id(`rb), `CurrentButton) == `import)
{
@@ -172,11 +172,11 @@
UI::ChangeWidget (`id (`pw2), `Enabled, false);
UI::ChangeWidget (`id (`localServerName), `Enabled, false);
UI::ChangeWidget (`id (`id_serverName), `Enabled, false);
- UI::ChangeWidget (`id (`pathCert), `Enabled, true);
+ UI::ChangeWidget (`id (`pathCert), `Enabled, true);
UI::ChangeWidget (`id(`browseCert), `Enabled, true);
UI::ChangeWidget (`id (`pw3), `Enabled, true);
UI::ChangeWidget (`id (`pw4), `Enabled, true);
-
+
}
else
{
@@ -189,11 +189,11 @@
UI::ChangeWidget (`id (`id_locality), `Enabled, true);
UI::ChangeWidget (`id (`id_state), `Enabled, true);
UI::ChangeWidget (`id (`localServerName), `Enabled, true);
- UI::ChangeWidget (`id (`pathCert), `Enabled, false);
+ UI::ChangeWidget (`id (`pathCert), `Enabled, false);
UI::ChangeWidget (`id(`browseCert), `Enabled, false);
UI::ChangeWidget (`id (`pw3), `Enabled, false);
UI::ChangeWidget (`id (`pw4), `Enabled, false);
-
+
UI::ChangeWidget (`id (`pw1), `Enabled, true);
UI::ChangeWidget (`id (`pw2), `Enabled, true);
@@ -204,10 +204,10 @@
else
{
UI::ChangeWidget (`id (`id_serverName), `Enabled, true);
- }
+ }
}
-
+
ret = Wizard::UserInput();
if (ret == `browseCert)
@@ -217,14 +217,14 @@
{
UI::ChangeWidget(`id(`pathCert), `Value, name);
}
- ret = `again;
+ ret = `again;
}
if (ret == `next
||ret == `back)
{
remove (CaMgm::autoYaSTSettings, "certificate");
-
+
boolean notImport = (boolean) (UI::QueryWidget(`id(`rb), `CurrentButton) == `notImport);
if (notImport)
{
@@ -246,7 +246,7 @@
{
Popup::Error(_("CA name required."));
ret = `again;
- }
+ }
if (notImport
&& size ((string) UI::QueryWidget(`id(`id_commonName), `Value)) <= 0
&& ret!=`again)
@@ -268,7 +268,7 @@
&& ret!=`again)
{
Popup::Error(_("Server name required."));
- ret = `again;
+ ret = `again;
}
if (!notImport
@@ -284,42 +284,42 @@
{
Popup::Error(_("Password length should be greater than three characters."));
ret = `again;
- }
- }
+ }
+ }
map retmap = $[];
-
+
if (!notImport
&& ret!=`again)
{
string command = sformat("/usr/bin/openssl base64 -in %1 -e",
- (string) UI::QueryWidget(`id (`pathCert), `Value));
+ String::Quote ( (string) UI::QueryWidget(`id (`pathCert), `Value)));
retmap = (map) SCR::Execute (.target.bash_output,
command,
$[] );
y2milestone("%1 :%2", command, retmap);
if (retmap["exit"]:0 != 0)
{
- y2error("%1 :%2", command, retmap);
+ y2error("%1 :%2", command, retmap);
Popup::Error(_("Cannot read the certificate."));
- ret = `again;
+ ret = `again;
}
}
if (ret!=`again)
{
CaMgm::autoYaSTSettings = $[];
-
+
CaMgm::autoYaSTSettings["importCertificate"] = (boolean) ((symbol)UI::QueryWidget(`id(`rb), `CurrentButton) == `import);
if (CaMgm::autoYaSTSettings["importCertificate"]:false)
{
CaMgm::autoYaSTSettings["certificate"] = strip(retmap["stdout"]:"");
CaMgm::autoYaSTSettings["pathCertificate"] = (string) UI::QueryWidget(`id (`pathCert), `Value);
- CaMgm::autoYaSTSettings["password"] = (string) UI::QueryWidget(`id(`pw3), `Value);
+ CaMgm::autoYaSTSettings["password"] = (string) UI::QueryWidget(`id(`pw3), `Value);
}
else
{
- CaMgm::autoYaSTSettings["takeLocalServerName"] = (boolean) UI::QueryWidget(`id(`localServerName), `Value);
+ CaMgm::autoYaSTSettings["takeLocalServerName"] = (boolean) UI::QueryWidget(`id(`localServerName), `Value);
CaMgm::autoYaSTSettings["password"] = (string) UI::QueryWidget(`id(`pw1), `Value);
if (!CaMgm::autoYaSTSettings["takeLocalServerName"]:true)
{
@@ -363,7 +363,7 @@
// importing CA/certificate
CaMgm::autoYaSTSettings["certificate"] = settings["certificate"]:"";
CaMgm::autoYaSTSettings["pathCertificate"] = settings["pathCertificate"]:"";
- CaMgm::autoYaSTSettings["password"] = settings["password"]:"";
+ CaMgm::autoYaSTSettings["password"] = settings["password"]:"";
}
else
{
@@ -372,20 +372,20 @@
{
CaMgm::autoYaSTSettings["password"] = settings["password"]:"";
}
-
+
CaMgm::autoYaSTSettings["takeLocalServerName"] = settings["takeLocalServerName"]:true;
if (settings["takeLocalServerName"]:true )
{
map
participants (1)
-
mcalmer@svn2.opensuse.org