Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 289015
Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java (-13 / +11 lines)
Lines 1164-1169 Link Here
1164
		Iterator<TaskAttribute> itr = attributes.iterator();
1164
		Iterator<TaskAttribute> itr = attributes.iterator();
1165
		boolean tokenFound = false;
1165
		boolean tokenFound = false;
1166
		boolean tokenRequired = false;
1166
		boolean tokenRequired = false;
1167
		BugzillaVersion bugzillaVersion = null;
1168
		if (repositoryConfiguration != null) {
1169
			bugzillaVersion = repositoryConfiguration.getInstallVersion();
1170
		} else {
1171
			bugzillaVersion = BugzillaVersion.MIN_VERSION;
1172
		}
1167
		while (itr.hasNext()) {
1173
		while (itr.hasNext()) {
1168
			TaskAttribute a = itr.next();
1174
			TaskAttribute a = itr.next();
1169
1175
Lines 1183-1194 Link Here
1183
						|| id.equals(BugzillaAttribute.VOTES.getKey())) {
1189
						|| id.equals(BugzillaAttribute.VOTES.getKey())) {
1184
					continue;
1190
					continue;
1185
				} else if (id.equals(BugzillaAttribute.NEW_COMMENT.getKey())) {
1191
				} else if (id.equals(BugzillaAttribute.NEW_COMMENT.getKey())) {
1186
					BugzillaVersion bugzillaVersion = null;
1187
					if (repositoryConfiguration != null) {
1188
						bugzillaVersion = repositoryConfiguration.getInstallVersion();
1189
					} else {
1190
						bugzillaVersion = BugzillaVersion.MIN_VERSION;
1191
					}
1192
					if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_2_18) == 0) {
1192
					if (bugzillaVersion.compareMajorMinorOnly(BugzillaVersion.BUGZILLA_2_18) == 0) {
1193
						a.setValue(formatTextToLineWrap(a.getValue(), true));
1193
						a.setValue(formatTextToLineWrap(a.getValue(), true));
1194
					}
1194
					}
Lines 1206-1212 Link Here
1206
				} else if (id != null && id.compareTo("") != 0) { //$NON-NLS-1$
1206
				} else if (id != null && id.compareTo("") != 0) { //$NON-NLS-1$
1207
					String value = a.getValue();
1207
					String value = a.getValue();
1208
					if (id.equals(BugzillaAttribute.DELTA_TS.getKey())) {
1208
					if (id.equals(BugzillaAttribute.DELTA_TS.getKey())) {
1209
						value = stripTimeZone(value);
1209
						if (bugzillaVersion.compareTo(BugzillaVersion.BUGZILLA_3_4_7) < 0
1210
								|| (bugzillaVersion.compareTo(BugzillaVersion.BUGZILLA_3_5) >= 0)
1211
								&& bugzillaVersion.compareTo(BugzillaVersion.BUGZILLA_3_6) < 0) {
1212
							value = stripTimeZone(value);
1213
						}
1210
					}
1214
					}
1211
					if (id.startsWith("task.common.kind.flag_type") && repositoryConfiguration != null) { //$NON-NLS-1$
1215
					if (id.startsWith("task.common.kind.flag_type") && repositoryConfiguration != null) { //$NON-NLS-1$
1212
						List<BugzillaFlag> flags = repositoryConfiguration.getFlags();
1216
						List<BugzillaFlag> flags = repositoryConfiguration.getFlags();
Lines 1262-1273 Link Here
1262
		}
1266
		}
1263
1267
1264
		// add the operation to the bug post
1268
		// add the operation to the bug post
1265
		BugzillaVersion bugzillaVersion = null;
1266
		if (repositoryConfiguration != null) {
1267
			bugzillaVersion = repositoryConfiguration.getInstallVersion();
1268
		} else {
1269
			bugzillaVersion = BugzillaVersion.MIN_VERSION;
1270
		}
1271
		if (bugzillaVersion.compareTo(BugzillaVersion.BUGZILLA_3_2) < 0) {
1269
		if (bugzillaVersion.compareTo(BugzillaVersion.BUGZILLA_3_2) < 0) {
1272
1270
1273
			TaskAttribute attributeOperation = model.getRoot().getMappedAttribute(TaskAttribute.OPERATION);
1271
			TaskAttribute attributeOperation = model.getRoot().getMappedAttribute(TaskAttribute.OPERATION);
(-)src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaVersion.java (-1 / +7 lines)
Lines 32-38 Link Here
32
32
33
	public final static BugzillaVersion BUGZILLA_3_4 = new BugzillaVersion("3.4"); //$NON-NLS-1$
33
	public final static BugzillaVersion BUGZILLA_3_4 = new BugzillaVersion("3.4"); //$NON-NLS-1$
34
34
35
	public final static BugzillaVersion MAX_VERSION = new BugzillaVersion("3.4"); //$NON-NLS-1$
35
	public final static BugzillaVersion BUGZILLA_3_4_7 = new BugzillaVersion("3.4.7"); //$NON-NLS-1$
36
37
	public final static BugzillaVersion BUGZILLA_3_5 = new BugzillaVersion("3.5"); //$NON-NLS-1$
38
39
	public final static BugzillaVersion BUGZILLA_3_6 = new BugzillaVersion("3.6"); //$NON-NLS-1$
40
41
	public final static BugzillaVersion MAX_VERSION = new BugzillaVersion("3.6"); //$NON-NLS-1$
36
42
37
	private final int major;
43
	private final int major;
38
44

Return to bug 289015