Hide Forgot
Description of problem: OPENSHIFT_SECRET_TOKEN can be reset to a value begin with a digit [root@Daphne ]# rhc set-env OPENSHIFT_SECRET_TOKEN=1213213213fdfdfdfdfdf -a wordpressSetting environment variable(s) ... done Version-Release number of selected component (if applicable): devnev_3810 How reproducible: Always Steps to Reproduce: 1. create an app 2. reset the OPENSHIFT_SECRET_TOKEN without enter an environment variable: #rhc set-env OPENSHIFT_SECRET_TOKEN -a wordpress -n 111 3. reset the OPENSHIFT_SECRET_TOKEN with a value begin with digit 4. reset the OPENSHIFT_SECRET_TOKEN with a value contain some special characters 5. connect to the app and check the value Actual results: step2: [root@Daphne railsapp]# rhc set-env OPENSHIFT_SECRET_TOKEN -a wordpress -n 111 Environment variable(s) not provided. Please provide at least one environment variable using the syntax VARIABLE=VALUE. VARIABLE can only contain letters, digits and underscore ('_') and can't begin with a digit. step3: [root@Daphne ]# rhc set-env OPENSHIFT_SECRET_TOKEN=1213213213fdfdfdfdfdf -a wordpressSetting environment variable(s) ... done step4: [root@Daphne ]# rhc set-env OPENSHIFT_SECRET_TOKEN=dsjdsdlsklrueoufjdkljflsdkflsdlksl123%^^ -a wordpress Setting environment variable(s) ... done in step2, the return message show that we can't set set OPENSHIFT_SECRET_TOKEN as an value begin with a digit. but in step3-4, the value can be set successfully Expected results: should not allow to set a value begin with a digit or contain some special characters
Just the VARIABLE can only contain letters, digits and underscore ('_') and can't begin with a digit, not the value. sorry for mistake the return message.