| Summary: | Unable to list and add env variable any more after user try to add env variable with an invalid UTF-8 value by RESTAPI for app | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Nan Wei <nwei> |
| Component: | Master | Assignee: | Luke Meyer <lmeyer> |
| Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.0.0 | CC: | adellape, bleanhar, dmcphers, jdetiber, jolamb, libra-onpremise-devel, xtian |
| Target Milestone: | --- | Keywords: | UpcomingRelease |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-openshift-origin-controller-1.17.11-1.el6op openshift-origin-broker-1.15.3-1.el6op | Doc Type: | Bug Fix |
| Doc Text: |
Invalid UTF-8 characters were accepted as values for environment variables, causing errors during operations that utilized those variables. The input validation for environment variables that are configured by users now includes UTF-8 encoding, and as a result invalid UTF-8 characters are now rejected.
|
Story Points: | --- |
| Clone Of: | 1032436 | Environment: | |
| Last Closed: | 2014-01-28 16:39:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1032436 | ||
| Bug Blocks: | |||
|
Description
Nan Wei
2013-11-26 09:39:26 UTC
Next build of rubygem-openshift-origin-console https://github.com/openshift/enterprise-server/pull/179 origin-server: commit 374793256163bdc93dcda88fa95f6afd08581ee7 Author: Lili Nader <lnader> Date: Thu Nov 21 16:43:36 2013 -0800 Bug 1032436 commit 425baa3ad8087b7b59081571303cedcaaee8c622 Author: Lili Nader <lnader> Date: Wed Nov 20 18:45:20 2013 -0800 Added checking for git ref according to git-check-ref-format rules commit fc50a13e7b6143cbb56f0c1906f9a99273a29223 Author: Lili Nader <lnader> Date: Fri Nov 22 14:50:50 2013 -0800 Added ; to list of chars not allowed The pull request merge testing failed. I'll look into it as priorities allow. I'd like to take another shot at this for 2.0.2. Tracked the merge tests failing to a bug in the devenv script, updated the script to fix the issue and the merge was successful. Openshift enterprise puddle: 2014-01-16.1 1. add new env variable to an exist app curl -k -H 'Accept: application/xml' --user nwei1 https://10.4.59.142/broker/rest/domain/nwei1domain/application/phps/environment-variables -X POST -d name=foo2 -d value='wwebar%B3' <message> <severity>error</severity> <text>Only valid UTF-8 encoded inputs are accepted</text> <exit-code nil="true"></exit-code> <field nil="true"></field> <index nil="true"></index> </message> 2. check env variable output [root@broker ~]# rhc env list -a phps 3. add valid env variable and check output resule [root@broker ~]# rhc env list -a phps foo1=wwww Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0102.html |