Guest

Preview Tool

Cisco Bug: CSCvj15694 - CMX10.4.1 "cmxctl config maps floors" shows an error if the floor name with multi-byte characters

Last Modified

Aug 27, 2018

Products (1)

  • Cisco Mobility Services Engine

Known Affected Releases

10.4(1)

Description (partial)

Symptom:
"cmxctl config maps floors" command shows an error below.
As our analysis, the error happens if the floor name has multi-byte characters.

[cmxadmin@tcmx-1 ~]$ cmxctl config maps floors Traceback (most recent call last):
File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main
  "__main__", fname, loader, pkg_name)
File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code
  exec code in run_globals
File "/opt/cmx/sw/lib/pymodules/cmxctl/__main__.py", line 364, in <module>
  cmxctl(obj=obj)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
  return self.main(*args, **kwargs)
-- snip -- 
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 936, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 782, in invoke
  return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/site-packages/click/core.py", line 416, in invoke
  return callback(*args, **kwargs)
File "/opt/cmx/sw/lib/pymodules/cmxctl/configure.py", line 810, in showfloors
  config.printFloors(campus, building, csv) File "/opt/cmx/sw/lib/pymodules/cmxctl/util/cmxconfig.py", line 757, in printFloors
  print_pretty_table(floors_table)
File "/opt/cmx/sw/lib/pymodules/cmxagent/util/prettyfmt.py", line 14, in print_pretty_table
  sys.stdout.write(format_pretty_table(table))
File "/opt/cmx/sw/lib/pymodules/cmxagent/util/prettyfmt.py", line 33, in format_pretty_table
  if len(str(entry)) > column_width[i]:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

Conditions:
na
Bug details contain sensitive information and therefore require a Cisco.com account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.