Eldan Shachar has posted comments on this change.

Change subject: core: Fix ISO file support to be case insensitive
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.ovirt.org/#/c/35038/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ChangeDiskCommand.java:

Line 52:                 && !StringUtils.isEmpty(cdImagePath)) {
Line 53:             return 
failCanDoAction(VdcBllMessages.VM_CANNOT_WITHOUT_ACTIVE_STORAGE_DOMAIN_ISO);
Line 54:         }
Line 55: 
Line 56:         if (StringUtils.isNotEmpty(cdImagePath) && 
!cdImagePath.toLowerCase().endsWith(ValidationUtils.ISO_SUFFIX)) {
> How about using StringUtils#endsWithIgnoreCase ?
Done
Line 57:             return 
failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_INVALID_CDROM_DISK_FORMAT);
Line 58:         }
Line 59: 
Line 60:         return true;


-- 
To view, visit http://gerrit.ovirt.org/35038
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iec8df04bacb81db6c872c7920610abdbe1471da4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eldan Shachar <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Eldan Shachar <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Shahar Havivi <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to