Module: wine
Branch: master
Commit: 8585203103bf29192af2019d777eb508d1fd01ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8585203103bf29192af2019d7…
Author: Juan Lang <juan.lang(a)gmail.com>
Date: Mon Nov 16 17:55:23 2009 -0800
crypt32: Prohibit name constraints that contain neither an excluded nor a permitted subtree.
---
dlls/crypt32/chain.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/chain.c b/dlls/crypt32/chain.c
index 52ac5d9..11010d5 100644
--- a/dlls/crypt32/chain.c
+++ b/dlls/crypt32/chain.c
@@ -850,6 +850,17 @@ static BOOL CRYPT_IsValidNameConstraint(const CERT_NAME_CONSTRAINTS_INFO *info)
DWORD i;
BOOL ret = TRUE;
+ /* Make sure at least one permitted or excluded subtree is present. From
+ * RFC 5280, section 4.2.1.10:
+ * "Conforming CAs MUST NOT issue certificates where name constraints is an
+ * empty sequence. That is, either the permittedSubtrees field or the
+ * excludedSubtrees MUST be present."
+ */
+ if (!info->cPermittedSubtree && !info->cExcludedSubtree)
+ {
+ WARN_(chain)("constraints contain no permitted nor excluded subtree\n");
+ ret = FALSE;
+ }
/* Check that none of the constraints specifies a minimum or a maximum.
* See RFC 5280, section 4.2.1.10:
* "Within this profile, the minimum and maximum fields are not used with
Module: appdb
Branch: master
Commit: 0df84bdc05fc5fad39304bda89a8450f88b083e0
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0df84bdc05fc5fad39304bda…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sun Nov 15 20:26:53 2009 +0100
testData: Add Installs? option of 'No, but has workaround'
---
include/testData.php | 8 ++++----
tables/testResults.sql | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/testData.php b/include/testData.php
index e565bee..5b6f1cb 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -1012,16 +1012,16 @@ class testData{
if (($aValues['sRuns'] != "Yes") && ($aValues['sTestedRating'] != GARBAGE_RATING))
$errors .= "<li>Applications that do not run should be rated ‘Garbage’.</li>\n";
- if (($aValues['sInstalls'] == "No") && ($aValues['sTestedRating'] == PLATINUM_RATING))
+ if (($aValues['sInstalls'] == "No" || $aValues['sInstalls'] == 'No, but has workaround') && ($aValues['sTestedRating'] == PLATINUM_RATING))
$errors .= "<li>An application can only get a Platinum rating if it installs and runs ‘out of the box’.</li>\n";
// Basic checking of logic. Runs? can obviously only be 'Not Installable'
// if the application does not install
if (($aValues['sInstalls'] != "No") && ($aValues['sRuns'] == "Not installable"))
- $errors .= "<li>You can only set Runs? to ‘Not installable’ if the application's installer does not work</li>\n";
+ $errors .= "<li>You can only set Runs? to ‘Not installable’ if Installs? is set ‘No’</li>\n";
if (($aValues['sInstalls'] == "No") && ($aValues['sRuns'] != "Not installable"))
- $errors .= "<li>You can only set Runs? to ‘Not installable’' if the application's installer does not work</li>\n";
+ $errors .= "<li>Runs? must be set to ‘Not installable’ if there is no way to install the app</li>\n";
return $errors;
@@ -1053,7 +1053,7 @@ class testData{
{
echo "<select name='$sVarname'>\n";
echo "<option value=\"\">Choose ...</option>\n";
- $aRating = array("Yes", "No", "N/A");
+ $aRating = array('Yes', 'No', 'No, but has workaround', 'N/A');
$iMax = count($aRating);
for($i=0; $i < $iMax; $i++)
diff --git a/tables/testResults.sql b/tables/testResults.sql
index dd0d899..7f88a54 100644
--- a/tables/testResults.sql
+++ b/tables/testResults.sql
@@ -14,7 +14,7 @@ create table testResults (
testedDate datetime not null,
distributionId int not null,
testedRelease tinytext,
- installs enum('Yes','No','N/A') NOT NULL default 'Yes',
+ installs enum('Yes','No','No, but has workaround','N/A') NOT NULL default 'Yes',
runs enum('Yes','No','Not Installable') NOT NULL default 'Yes',
testedRating enum('Platinum','Gold','Silver','Bronze','Garbage') NOT NULL,
comments text,
Module: appdb
Branch: master
Commit: d3491d916c5378a1de136459065ed26d7a472c49
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=d3491d916c5378a1de136459…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sun Nov 15 20:06:19 2009 +0100
Emails especially for admins should be sent regardless of global emails setting
---
include/user.php | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/user.php b/include/user.php
index 36101af..a3b3426 100644
--- a/include/user.php
+++ b/include/user.php
@@ -580,9 +580,12 @@ class User {
// if we didn't find this entry in the $aUserId
// array then we should add it if the admin has
- // enabled global emails
+ // enabled global emails.
+ // If both appId and versionId are null we are especially
+ // requesting to email admins, so the mail should be sent
+ // regardless of global emails setting
$oAdmin = new user($oRow->userid);
- if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no'))
+ if($i === false && ($oAdmin->getPref('disable_global_emails','no') == 'no' && ($iAppId || $iVersionId)))
$aUserId[] = $oRow->userid;
}
}
Module: appdb
Branch: master
Commit: 03ac68731c1305bdd786184bb6472c20669be1e8
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=03ac68731c1305bdd786184b…
Author: Alexander Nicolaysen Sørnes <alexander(a)linux-xqqm.(none)>
Date: Sun Nov 15 20:00:56 2009 +0100
testData: Don't show non-admins the option of showing unmaintained entries, as it has no effect for them
---
include/testData.php | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/testData.php b/include/testData.php
index 879e363..e565bee 100644
--- a/include/testData.php
+++ b/include/testData.php
@@ -1174,11 +1174,14 @@ class testData{
public function objectGetFilterInfo()
{
$oFilter = new FilterInterface();
+
+ /* The following filters are only useful for admins */
+ if(!$_SESSION['current']->hasPriv('admin'))
+ return null;
+
$oFilter->AddFilterInfo('onlyWithoutMaintainers', 'Only show test data for versions without maintainers', array(FILTER_OPTION_BOOL), FILTER_VALUES_OPTION_BOOL, array('false','true'));
- /* Allow admins to only show entries for apps they maintain */
- if($_SESSION['current']->hasPriv('admin'))
- $oFilter->AddFilterInfo('onlyMyMaintainedEntries', 'Only show test data for versions you maintain', array(FILTER_OPTION_BOOL), FILTER_VALUES_OPTION_BOOL, array('false','true'));
+ $oFilter->AddFilterInfo('onlyMyMaintainedEntries', 'Only show test data for versions you maintain', array(FILTER_OPTION_BOOL), FILTER_VALUES_OPTION_BOOL, array('false','true'));
return $oFilter;
}