Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special characters can't be used for barcode titles #18

Open
unlobito opened this issue Nov 4, 2015 · 0 comments
Open

Special characters can't be used for barcode titles #18

unlobito opened this issue Nov 4, 2015 · 0 comments

Comments

@unlobito
Copy link
Owner

unlobito commented Nov 4, 2015

skunk-config chokes on the special characters & the app might not be able to render these.

2015-11-04T16:15:05.037962+00:00 app[web.1]: JSON::ParserError - unexpected token at '{"barcodes":[{"name":"Papelería Abreu","type":"upca","data":"000000123456"}]':
2015-11-04T16:15:05.037970+00:00 app[web.1]:    json/ext/Parser.java:251:in `parse'
2015-11-04T16:15:05.037972+00:00 app[web.1]:    /app/vendor/ruby-2.2.2-jruby-9.0.1.0/lib/ruby/stdlib/json/common.rb:155:in `parse'
2015-11-04T16:15:05.037973+00:00 app[web.1]:    /app/app.rb:108:in `block in POST /data'
2015-11-04T16:15:05.037974+00:00 app[web.1]:    org/jruby/RubyMethod.java:111:in `call'
2015-11-04T16:15:05.037976+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in `block in compile!'
2015-11-04T16:15:05.037976+00:00 app[web.1]:    org/jruby/RubyProc.java:308:in `call'
2015-11-04T16:15:05.037977+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block in route!'
2015-11-04T16:15:05.037978+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:in `route_eval'
2015-11-04T16:15:05.037979+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in `block in route!'
2015-11-04T16:15:05.037979+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:in `block in process_route'
2015-11-04T16:15:05.037980+00:00 app[web.1]:    org/jruby/RubyKernel.java:1098:in `catch'
2015-11-04T16:15:05.037981+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in `process_route'
2015-11-04T16:15:05.037981+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in `block in route!'
2015-11-04T16:15:05.045697+00:00 app[web.1]: 193.60.168.72 - - [04/Nov/2015 16:15:05] "POST /data HTTP/1.1" 500 30 0.0120
2015-11-04T16:15:05.037982+00:00 app[web.1]:    org/jruby/RubyArray.java:1560:in `each'
2015-11-04T16:15:05.037983+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in `route!'
2015-11-04T16:15:05.037983+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:in `block in dispatch!'
2015-11-04T16:15:05.037984+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2015-11-04T16:15:05.037985+00:00 app[web.1]:    org/jruby/RubyKernel.java:1098:in `catch'
2015-11-04T16:15:05.037986+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:in `dispatch!'
2015-11-04T16:15:05.037986+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2015-11-04T16:15:05.037987+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `block in call!'
2015-11-04T16:15:05.037988+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `block in invoke'
2015-11-04T16:15:05.037989+00:00 app[web.1]:    org/jruby/RubyKernel.java:1098:in `catch'
2015-11-04T16:15:05.037990+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in `invoke'
2015-11-04T16:15:05.037990+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in `call!'
2015-11-04T16:15:05.037991+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:in `call'
2015-11-04T16:15:05.037992+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2015-11-04T16:15:05.037992+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2015-11-04T16:15:05.037993+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
2015-11-04T16:15:05.037994+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
2015-11-04T16:15:05.037994+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
2015-11-04T16:15:05.037995+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2015-11-04T16:15:05.037996+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
2015-11-04T16:15:05.037996+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
2015-11-04T16:15:05.037998+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
2015-11-04T16:15:05.037999+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:217:in `call'
2015-11-04T16:15:05.038000+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:210:in `call'
2015-11-04T16:15:05.038000+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2015-11-04T16:15:05.038002+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:in `call'
2015-11-04T16:15:05.038002+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in `call'
2015-11-04T16:15:05.038001+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2015-11-04T16:15:05.038008+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in `synchronize'
2015-11-04T16:15:05.038003+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `block in call'
2015-11-04T16:15:05.038010+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/configuration.rb:78:in `call'
2015-11-04T16:15:05.038009+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:in `call'
2015-11-04T16:15:05.038010+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:541:in `handle_request'
2015-11-04T16:15:05.038012+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:270:in `block in run'
2015-11-04T16:15:05.038012+00:00 app[web.1]:    org/jruby/RubyProc.java:308:in `call'
2015-11-04T16:15:05.037997+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call'
2015-11-04T16:15:05.042441+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
2015-11-04T16:15:05.038011+00:00 app[web.1]:    /app/vendor/bundle/jruby/2.2.0/gems/puma-2.14.0-java/lib/puma/server.rb:388:in `process_client'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant