Brief Description: On Windows powershell, the gzr folder export command fails when one of the dashboards contains the ">" character. Probably because that character is invalid for windows filenames?
Steps to reproduce:
- In Looker, create a folder
- In the folder, create a dashboard with the ">" character in the name
- In Windows powershell, run:
gzr folder export <folder-number> --port=443 --host=<hostname>
- Expected: Export command should succeed.
- Actual: Export command fails with error:
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/modules/filehelper.rb:66:in `initialize': Invalid argument @ rb_sysopen - C:/Users/.../Troubleshooting/Dashboard_37_Streams > 24 Hours.json (Errno::EINVAL)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/modules/filehelper.rb:66:in `open'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/modules/filehelper.rb:66:in `write_file'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder/export.rb:110:in `block in process_folder'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder/export.rb:107:in `each'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder/export.rb:107:in `process_folder'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder/export.rb:83:in `block in execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/modules/session.rb:306:in `with_session'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder/export.rb:51:in `execute'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/lib/gzr/commands/folder.rb:84:in `export'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/command.rb:28:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor.rb:538:in `dispatch'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/invocation.rb:116:in `invoke'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor.rb:338:in `block in subcommand'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/command.rb:28:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor.rb:538:in `dispatch'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.4.0/lib/thor/base.rb:584:in `start'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/gazer-0.3.18/exe/gzr:36:in `<top (required)>'
from C:/Ruby32-x64/bin/gzr:32:in `load'
from C:/Ruby32-x64/bin/gzr:32:in `<main>'
Brief Description: On Windows powershell, the
gzr folder exportcommand fails when one of the dashboards contains the ">" character. Probably because that character is invalid for windows filenames?Steps to reproduce: