#8295 error with latest EasyWidgets and debug=false

v1.11.0
closed
nobody
None
General
nobody
2019-06-17
2019-06-04
No

.ini settings of debug = false turn on EasyWidgets compress mode (seems like we could always have it on, so there's no difference between development and live sites). Then on URLs like this:

/nf/0/_ew_/_slim/js?href=allura%2Fjs%2Fjquery.notify.js%3Ballura%2Fjs%2Fjquery.tooltipster.js%3Ballura%2Fjs%2Fsylvester.js%3Ballura%2Fjs%2Ftwemoji.min.js%3Ballura%2Fjs%2Fpb.transformie.min.js%3Ballura%2Fjs%2Fallura-base.js%3Ballura%2Fjs%2Fchecklist.js%3Ballura%2Fjs%2Fadmin_modal.js%3Bjs%2Fjquery.lightbox_me.js%3Ballura%2Fjs%2Fmemorable.js%3Bjs%2Fsimplemde.min.js%3Bjs%2Fsf_markitup.js%3Bjs%2Fshow-hint.js%3Bjs%2Fusermentions-helper.js%3Bjs%2Fpost.js%3Bjs%2Fjquery.tagsinput.js%3Bjs%2Freactions.js%3Bjs%2Fcombobox.js%3Bjs%2Fvote.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fshared.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsticky.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Faudero-sticky.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Fchrome.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Futilities.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.core.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.mediaQuery.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.keyboard.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.box.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.util.nest.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.dropdownMenu.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Ffoundation6%2Fplugins%2Ffoundation.offcanvas.min.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fsandiego%2Fproject.js%3Btheme%2Fsftheme%2Fjs%2Fsftheme%2Fvendor%2Fjquery.typeahead.min.js%3Ballura%2Fjs%2Funderscore-min.js%3Ballura%2Fjs%2Fbrowser-polyfill.min.js%3Ballura%2Fjs%2Freact.production.min.js%3Ballura%2Fjs%2Freact-dom.production.min.js%3Ballura%2Fjs%2Fcreate-react-class.min.js%3Ballura%2Fjs%2Fprop-types.min.js%3Ballura%2Fjs%2Freact-drag.min.js%3Ballura%2Fjs%2Freact-reorderable.min.js%3Ballura%2Fjs%2Fbuild%2Ftranspiled.js

this error occurs:

Traceback (most recent call last):
  File "/nfs/built/env-allura/lib/python2.7/site-packages/tg/support/registry.py", line 253, in __call__
    app_iter = self.application(environ, start_response)
  File "/nfs/built/env-allura/lib/python2.7/site-packages/Ming-0.5.6-py2.7.egg/ming/odm/middleware.py", line 29, in __call__
    result = self.app(environ, start_response)
  File "/src/allura/Allura/allura/lib/custom_middleware.py", line 60, in __call__
    return self.app(environ, start_response)
  File "/nfs/built/env-allura/lib/python2.7/site-packages/ew/middleware.py", line 71, in __call__
    environ, start_response)
  File "/nfs/built/env-allura/lib/python2.7/site-packages/ew/middleware.py", line 94, in serve_slim_js
    data = mgr.serve_slim('js', res_path)
  File "/nfs/built/env-allura/lib/python2.7/site-packages/ew/resource.py", line 186, in serve_slim
    content = joiner.join(getter(h) for h in href.split(';') )
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 39021: ordinal not in range(128)

Discussion

  • Dave Brondsema

    Dave Brondsema - 2019-06-04

    easywidgets:db/8295 and then we need to cut a 0.3.1 release for it

    and then allura:db/8295

     
  • Kenton Taylor

    Kenton Taylor - 2019-06-04

    Both merged.

     
  • Dave Brondsema

    Dave Brondsema - 2019-06-04
    • status: in-progress --> closed
     
  • Dave Brondsema

    Dave Brondsema - 2019-06-17
    • Milestone: unreleased --> v1.11.0
     

Log in to post a comment.