From 797324b2eaf67258eb80a12eb8a49f9065bd98f0 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Tue, 26 Mar 2024 16:27:15 +0530 Subject: [PATCH] Retire Fix Impl (#81) Co-authored-by: sahilchaudhary Co-authored-by: Sahil-tarento <140611066+Sahil-tarento@users.noreply.github.com> --- .../src/main/scala/org/sunbird/content/util/RetireManager.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-api/content-actors/src/main/scala/org/sunbird/content/util/RetireManager.scala b/content-api/content-actors/src/main/scala/org/sunbird/content/util/RetireManager.scala index cbd8e4eba..2be7ca06c 100644 --- a/content-api/content-actors/src/main/scala/org/sunbird/content/util/RetireManager.scala +++ b/content-api/content-actors/src/main/scala/org/sunbird/content/util/RetireManager.scala @@ -50,7 +50,7 @@ object RetireManager { private def validateRequest(request: Request) = { val contentId: String = request.get(ContentConstants.IDENTIFIER).asInstanceOf[String] - if (StringUtils.isBlank(contentId) || StringUtils.endsWithIgnoreCase(contentId, HierarchyConstants.IMAGE_SUFFIX)) + if (StringUtils.isBlank(contentId)) throw new ClientException(ContentConstants.ERR_INVALID_CONTENT_ID, "Please Provide Valid Content Identifier.") }