From 904bbb5f7f43fac2dc8b65b84a2cf31a8efb0e3c Mon Sep 17 00:00:00 2001 From: sahilchaudhary Date: Tue, 26 Mar 2024 15:57:50 +0530 Subject: [PATCH] Retire Fix Impl --- .../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.") }