You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mysql throws an error while trying to store a string into a varchar column when the string contains emojis. E.G. if you give an app the name '🦄🦄🦄'.
(You can see the error in the Unit Tests / Test-Mysql checks of this PR #3719 )
Context
This is inconsistent to Postgresql behaviour, Postgresql does not throw an error and stores the name as it is into the ccdb.
The column name in table apps is varchar(255).
Steps to Reproduce
Insert into e.g. spec/request/space_manifests_spec.rb a test that creates an app with emoji in the app name e.g.
context 'when the manifest contains valid binary-encoded URL(s) for the buildpack(s)' do
let(:app1_model) { VCAP::CloudController::AppModel.make(name: '🦄🦄🦄', space: space) }
let(:yml_manifest_with_binary_valid_buildpacks) do
"---
applications:
- name: #{app1_model.name}
buildpacks:
- !!binary |-
aHR0cHM6Ly9naXRodWIuY29tL2Nsb3VkZm91bmRyeS9uZ2lueC1idWlsZHBhY2suZ2l0
- !!binary |-
aHR0cHM6Ly9naXRodWIuY29tL2J1aWxkcGFja3MvbXktc3BlY2lhbC1idWlsZHBhY2s="
end
it 'applies the manifest' do
post "/v3/spaces/#{space.guid}/actions/apply_manifest", yml_manifest_with_binary_valid_buildpacks, yml_headers(user_header)
expect(last_response.status).to eq(202)
end
end
Issue
Mysql throws an error while trying to store a string into a varchar column when the string contains emojis. E.G. if you give an app the name '🦄🦄🦄'.
(You can see the error in the Unit Tests / Test-Mysql checks of this PR #3719 )
Context
This is inconsistent to Postgresql behaviour, Postgresql does not throw an error and stores the name as it is into the ccdb.
The column
name
in tableapps
isvarchar(255)
.Steps to Reproduce
spec/request/space_manifests_spec.rb
a test that creates an app with emoji in the app name e.g.Expected result
All tests pass.
Current result
The test with the emojis in the app name fails with following error:
Possible Fix
Suggestion/Question: App naming (or storing any value into a varchar column in the ccdb) should be consistent for Mysql and Postgresql.
The text was updated successfully, but these errors were encountered: