Artifacts Associated With Ticket 218888
Ticket change [2d93b77e2c] (rid 119088) by nobody on 2000-10-26 01:07:14:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 2539 Bug Version: 8.2b2 SubmitDate: '1999-08-12' LastModified: '1999-09-20' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Solaris Machine: Other FixedDate: '1999-09-20' FixedInVersion: 8.3b1 ClosedDate: '2000-10-25' Name: Hemang Lavana CustomShell: Modified the function CheckVersion to flag an error whenever two consecutive dots appear in a version number. Comments: This problem is also present in 8.0.5. ReproducibleScript: The command "package provide test 1.0..1" runs successfully without any errors, even though the version number has two consecutive dots in it. DesiredBehavior: An error should be reported, when a package version number is specified with consecutive dots in it (ex: 1.0..1). Patch: *** tclPkg.c-org Thu Aug 12 09:06:27 1999 --- tclPkg.c Thu Aug 12 09:51:07 1999 *************** *** 871,884 **** * by dots. */ { char *p = string; if (!isdigit(UCHAR(*p))) { /* INTL: digit */ goto error; } for (p++; *p != 0; p++) { ! if (!isdigit(UCHAR(*p)) && (*p != '.')) { /* INTL: digit */ goto error; } } if (p[-1] != '.') { return TCL_OK; --- 871,888 ---- * by dots. */ { char *p = string; + char prevChar; if (!isdigit(UCHAR(*p))) { /* INTL: digit */ goto error; } + prevChar = *p; for (p++; *p != 0; p++) { ! if (!isdigit(UCHAR(*p)) && ! ((*p != '.') || (prevChar == '.'))) { /* INTL: digit */ goto error; } + prevChar = *p; } if (p[-1] != '.') { return TCL_OK; PatchFiles: tclPkg.c Added to 8.3b1 with tests. -- 09/20/1999 hobbs - foundin initialized to: "obsolete: 8.2b2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Package version numbers not validated correctly"
- type initialized to: "Bug"
Ticket change [f97e80f791] (rid 91719) by welch on 2000-10-26 08:31:14:
- closedate changed to: "2000-10-26T01:31:14"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [bacc0a46c7] (rid 129378) by dgp on 2001-04-19 00:35:55:
- closedate changed to: "2001-04-18T17:35:55"
- closer changed to: "dgp"
- subsystem changed to: "39. Package Manager"