mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merged BRANCHES/V2.2 to BRANCHES/V2.3:
97533: RM-1586 - server-side fix for legacy custom property names that might contain spaces git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@97600 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -34,6 +34,7 @@ import org.json.JSONException;
|
|||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import org.json.JSONTokener;
|
import org.json.JSONTokener;
|
||||||
import org.springframework.extensions.surf.util.ParameterCheck;
|
import org.springframework.extensions.surf.util.ParameterCheck;
|
||||||
|
import org.springframework.extensions.surf.util.URLEncoder;
|
||||||
import org.springframework.extensions.webscripts.Cache;
|
import org.springframework.extensions.webscripts.Cache;
|
||||||
import org.springframework.extensions.webscripts.Status;
|
import org.springframework.extensions.webscripts.Status;
|
||||||
import org.springframework.extensions.webscripts.WebScriptException;
|
import org.springframework.extensions.webscripts.WebScriptException;
|
||||||
@@ -133,7 +134,7 @@ public class CustomPropertyDefinitionPut extends BaseCustomPropertyWebScript
|
|||||||
String propId = (String)params.get(PROP_ID);
|
String propId = (String)params.get(PROP_ID);
|
||||||
ParameterCheck.mandatoryString("propId", propId);
|
ParameterCheck.mandatoryString("propId", propId);
|
||||||
|
|
||||||
QName propQName = rmAdminService.getQNameForClientId(propId);
|
QName propQName = rmAdminService.getQNameForClientId(URLEncoder.encode(propId));
|
||||||
if (propQName == null)
|
if (propQName == null)
|
||||||
{
|
{
|
||||||
throw new WebScriptException(Status.STATUS_NOT_FOUND,
|
throw new WebScriptException(Status.STATUS_NOT_FOUND,
|
||||||
|
Reference in New Issue
Block a user