Fix message when trying to set a non-editable plugin config value
Trying to set a non-editable plugin config value fails with "Not allowed to set parameter '<parameter-name>' of plugin '<plugin-name>' on project '<project-name>'.", but '<parameter-name>' was replaced with the plugin name. Change-Id: I6ea8d0263c3d646eb47b97210e270226c7413c1a Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
@@ -239,7 +239,7 @@ public class PutConfig implements RestModifyView<ProjectResource, Input> {
|
|||||||
if (Strings.emptyToNull(value) != null) {
|
if (Strings.emptyToNull(value) != null) {
|
||||||
if (!value.equals(oldValue)) {
|
if (!value.equals(oldValue)) {
|
||||||
validateProjectConfigEntryIsEditable(projectConfigEntry,
|
validateProjectConfigEntryIsEditable(projectConfigEntry,
|
||||||
projectState, e.getKey(), pluginName);
|
projectState, v.getKey(), pluginName);
|
||||||
v.setValue(projectConfigEntry.preUpdate(v.getValue()));
|
v.setValue(projectConfigEntry.preUpdate(v.getValue()));
|
||||||
value = v.getValue().value;
|
value = v.getValue().value;
|
||||||
try {
|
try {
|
||||||
@@ -283,7 +283,7 @@ public class PutConfig implements RestModifyView<ProjectResource, Input> {
|
|||||||
} else {
|
} else {
|
||||||
if (oldValue != null) {
|
if (oldValue != null) {
|
||||||
validateProjectConfigEntryIsEditable(projectConfigEntry,
|
validateProjectConfigEntryIsEditable(projectConfigEntry,
|
||||||
projectState, e.getKey(), pluginName);
|
projectState, v.getKey(), pluginName);
|
||||||
cfg.unset(v.getKey());
|
cfg.unset(v.getKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user