View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004612 | JEDI API & WSC Library | Windows Security Code Library (JWSCL) | public | 2008-12-04 02:28 | 2009-01-31 09:27 |
Reporter | ChristianWimmer | Assigned To | ChristianWimmer | ||
Priority | normal | Severity | tweak | Reproducibility | unable to reproduce |
Status | resolved | Resolution | fixed | ||
Summary | 0004612: EJwsclUnsupportedWindowsVersionException on Windows 7 | ||||
Description | “An Exception of type EJwsclUnsupportedWindowsVersionException was raised. Source method: GetRunElevation Source class: TJwSecurityToken Source file: JwsclToken.pas Source line: 0 Message: Unsupported version “Unknownâ€. Need “Windows Vista†or higher†Vista and Win7 are based on the same core so I’m quite sure this and similar errors can be avoided by including Win7 as a known OS and treating it the same way as Vista. What do you think? | ||||
Additional Information | CW: The main source of this exception is TJwWindowsVersion.CheckWindowsVersion, which clearly states in its docs that parameter "iWinVer" must be a known Windows Versions. The trunk revision 0000654 contains a fixed (but untested) version: The uploaded file contains a merge of the trunk fix and the 0.9.2a branch. It does not contain new features. I'm unable to reproduce because Windows 7 is not available yet. | ||||
Tags | No tags attached. | ||||
2008-12-04 02:28
|
JwsclVersion_W7fix.pas (33,459 bytes) |
|
This fix does not remedy the fact that Windows 7 is not supported at all by JWA&JWSCL. |
|
In line 690: if not ((fWindowsType = iWinVer) or (bOrHigher and (fWindowsType > iWinVer))) then need to be changed to if not ((fWindowsType = iWinVer) or (bOrHigher and (fWindowsType = cOsUnknown))) then This is because fWindowsType will always be -1 for newer/unknown OS and therefore can't be greater than iWinVer (e.g. 10). With this changes everything works fine with Win7. |
|
For newer, but known OS like Win7 actually JwsclConstants and JwsclVersion should be updated with the new information as they are certain. Win7 is (FMajorVersion = 6) and (FMinorVersion = 1). |
|
A similar fix was already added as a file from 0.9.2a branch. See notes. |
|
The issue is fixed in latest trunk. |
Date Modified | Username | Field | Change |
---|---|---|---|
2008-12-04 02:28 | ChristianWimmer | New Issue | |
2008-12-04 02:28 | ChristianWimmer | Status | new => assigned |
2008-12-04 02:28 | ChristianWimmer | Assigned To | => ChristianWimmer |
2008-12-04 02:28 | ChristianWimmer | File Added: JwsclVersion_W7fix.pas | |
2008-12-04 02:32 | ChristianWimmer | Note Added: 0015079 | |
2008-12-04 06:29 | anonymous | Note Added: 0015081 | |
2008-12-04 06:43 | anonymous | Note Added: 0015082 | |
2008-12-08 10:29 | anonymous | Note Added: 0015085 | |
2009-01-31 09:27 | ChristianWimmer | Note Added: 0015273 | |
2009-01-31 09:27 | ChristianWimmer | Status | assigned => resolved |
2009-01-31 09:27 | ChristianWimmer | Resolution | open => fixed |