Description of problem: Since uid "1000.0" is an string, so rhc-fix-gear-uids will change it to Integer or will give vaild exception. but I see the uid changed to 1000 and also throw the exception, this maybe wrong Version-Release number of selected component (if applicable): devenv_2509 How reproducible: always Steps to Reproduce: 1.Create district env, and create an app 2.Update this app's uid from 1000 to "1000.0" in the mongodb of user collection 3.then run ./root/.source_build/li/misc/maintenance/bin/rhc-fix-gear-uids in instance Actual results: [root@ip-10-145-149-244 /]# ./root/.source_build/li/misc/maintenance/bin/rhc-fix-gear-uids Gear UID cleanup summary : ["Gear 'c9d1c7122987443aabe47ded920a8cb2' in app qphp for user 'qgong', needs its uid to be set from '1000.0' to '1000'...done.\n"] No gears required their uids to be converted from String to Integer! The following gears converted their uids from String to Integer but FAILED: ["Gear 'c9d1c7122987443aabe47ded920a8cb2' in app qphp for user 'qgong', needs its uid converted from String to Integer...failed. Because of invalid value for Integer(): \"1000.0\"\n"] Expected results: [root@ip-10-145-149-244 /]# ./root/.source_build/li/misc/maintenance/bin/rhc-fix-gear-uids Gear UID cleanup summary : ["Gear 'c9d1c7122987443aabe47ded920a8cb2' in app qphp for user 'qgong', needs its uid to be set from '1000.0' to '1000'...done.\n"] Additional info:
The reason we have this check/fix in the script is legacy.. at some point some gears went into a state where the uids were committed as strings. While the Strings may exist (unlikely), the uid stored in a gear will never be a String that is not an Integer. Good find.. but it will never happen in reality. Please mark this as 'WONTFIX'.
Verified as DEV's comment.
(In reply to comment #2) > Verified as DEV's comment. According to comment 1, marked it as WONTFIX but not verified.