|
33 | 33 | import javax.annotation.PostConstruct; |
34 | 34 | import javax.inject.Inject; |
35 | 35 |
|
| 36 | +import org.apache.log4j.Logger; |
| 37 | + |
36 | 38 | import org.apache.cloudstack.acl.ControlledEntity; |
37 | 39 | import org.apache.cloudstack.acl.InfrastructureEntity; |
38 | 40 | import org.apache.cloudstack.acl.RoleType; |
|
49 | 51 | import org.apache.cloudstack.api.InternalIdentity; |
50 | 52 | import org.apache.cloudstack.api.Parameter; |
51 | 53 | import org.apache.cloudstack.api.ServerApiException; |
52 | | -import org.apache.cloudstack.api.Validate; |
53 | 54 | import org.apache.cloudstack.api.command.admin.resource.ArchiveAlertsCmd; |
54 | 55 | import org.apache.cloudstack.api.command.admin.resource.DeleteAlertsCmd; |
55 | 56 | import org.apache.cloudstack.api.command.user.event.ArchiveEventsCmd; |
|
58 | 59 | import org.apache.cloudstack.context.CallContext; |
59 | 60 | import org.apache.cloudstack.framework.jobs.AsyncJob; |
60 | 61 | import org.apache.cloudstack.framework.jobs.AsyncJobManager; |
61 | | -import org.apache.log4j.Logger; |
62 | 62 |
|
63 | 63 | import com.cloud.exception.InvalidParameterValueException; |
64 | 64 | import com.cloud.user.Account; |
@@ -369,7 +369,7 @@ private static Long translateUuidToInternalId(String uuid, Parameter annotation) |
369 | 369 | for (Class<?> entity : entities) { |
370 | 370 | // For backward compatibility, we search within removed entities and let service layer deal |
371 | 371 | // with removed ones, return empty response or error |
372 | | - Object objVO = s_instance._entityMgr.findByUuid(entity, uuid); |
| 372 | + Object objVO = s_instance._entityMgr.findByUuidIncludingRemoved(entity, uuid); |
373 | 373 | if (objVO == null) { |
374 | 374 | continue; |
375 | 375 | } |
|
0 commit comments