Giter Club home page Giter Club logo

Comments (13)

ikedas avatar ikedas commented on September 24, 2024

jquery* were upgraded in sympa-6.2 branch. This ticket will be kept open for debugging.

from sympa.

xavierba avatar xavierba commented on September 24, 2024

The jquery update breaks the 'edit list config' dropdown menu in mailing list admin panel.
Whatever item is selected in the dropdown menu will display the list definition part of the config.

from sympa.

racke avatar racke commented on September 24, 2024

from sympa.

xavierba avatar xavierba commented on September 24, 2024

My bad, jquery-migrate.js is not installed because I've not ran autoconf. oops :-(

from sympa.

xavierba avatar xavierba commented on September 24, 2024

It might not be just me being stupid...
Once the previously missing jquery-migrate.js is added, using Firefox 56, I get this in the js console:
20:21:02.087 TypeError: newFunc is undefined 1 jquery-migrate.js:102:3
migrateWarnFunc/obj[prop] https://lists.domain.tld/static-sympa/external/jquery-migrate.js:102:3
find https://lists.domain.tld/static-sympa/external/jquery.js:2708:35
jQuery.fn.init https://lists.domain.tld/static-sympa/external/jquery.js:2821:14
jQuery.fn.init https://lists.domain.tld/static-sympa/external/jquery-migrate.js:129:9
jQuery https://lists.domain.tld/static-sympa/external/jquery.js:73:10
assemble/< https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.topbar.js:388:13
each https://lists.domain.tld/static-sympa/external/jquery.js:383:14
each https://lists.domain.tld/static-sympa/external/jquery.js:136:10
assemble https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.topbar.js:372:7
init/< https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.topbar.js:46:11
each https://lists.domain.tld/static-sympa/external/jquery.js:383:14
each https://lists.domain.tld/static-sympa/external/jquery.js:136:10
init https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.topbar.js:30:7
init_lib https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.js:370:18
init https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.js:341:26
$.fn.foundation/< https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.js:727:7
each https://lists.domain.tld/static-sympa/external/jquery.js:383:14
each https://lists.domain.tld/static-sympa/external/jquery.js:136:10
$.fn.foundation https://lists.domain.tld/static-sympa/external/foundation/js/foundation/foundation.js:726:12
https://lists.domain.tld/sympa/edit_list_request/test/description:89:1
fire https://lists.domain.tld/static-sympa/external/jquery.js:3119:10
fireWith https://lists.domain.tld/static-sympa/external/jquery.js:3231:7
ready https://lists.domain.tld/static-sympa/external/jquery.js:3443:3
completed https://lists.domain.tld/static-sympa/external/jquery.js:3474:3

from sympa.

ikedas avatar ikedas commented on September 24, 2024

I could not reproduce reported error with Chrome 62.0.3202.75 and Firefox 56.0.2. Version of scripts are:

  • jquery.js 3.2.1
  • jquery-migrate.js 3.0.1
  • jquery-ui.js 1.12.1

from sympa.

xavierba avatar xavierba commented on September 24, 2024

Thanks for checking. The issue was actually (again) on my side, it worked with chromium (which I barely use) and worked again in Firefox after clearing the cache. Sorry for the noise. I'll retest when next beta release is available to double-check everything is in order.

from sympa.

ikedas avatar ikedas commented on September 24, 2024

If another problem will not be reported by 14 Dec., I'll close this issue.

from sympa.

ikedas avatar ikedas commented on September 24, 2024

Moved from issue #138.

Clicking "View last bounce" link in subscriber information, it has no effect and following traceback is shown on console:

Uncaught TypeError: Cannot read property 'defaultView' of null
    at getStyles (jquery.js:6077)
    at curCSS (jquery.js:6175)
    at Function.css (jquery.js:6520)
    at jquery.js:6646
    at access (jquery.js:4013)
    at jQuery.fn.init.css (jquery.js:6628)
    at Object.open (foundation.reveal.js:168)
    at HTMLAnchorElement.<anonymous> (foundation.reveal.js:67)
    at HTMLDocument.dispatch (jquery.js:5206)
    at HTMLDocument.elemData.handle (jquery.js:5014)

N.B. I saw traceback above with Chrome 62.0.3202.94 and Sympa 6.2.23b.2.

from sympa.

ikedas avatar ikedas commented on September 24, 2024

With jquery-migrate 1.4.1 the problem seems not to reproduce. So I think we have at least three options:

  1. Downgrade jquery-migrate to 1.4.1 and release Sympa 6.2.24 at due date (21 Dec.).
  2. Postpone release of Sympa 6.2.24 and seek the way to solve the problem radically.
  3. Roll back changes on jQuery and release Sympa 6.2.24 with vulnerable jQuery at due date.

Is there any others?

from sympa.

xavierba avatar xavierba commented on September 24, 2024

The bundled jquery in sympa has been updated straight from 1.11.1 to 3.2.1, which is a 2 major versions bump.
jquery advices to update from one major version to the next : https://jquery.com/upgrade-guide/3.0/#jquery-migrate-plugin
The issue here is likely some changes between jquery 2 to jquery 3.
I believe jquery-migrate 1.4 is intended to update from jquery 1 to jquery 2, while jquery-migrate 3 is intended to update from jquery 2 to jquery 3 and it is explicitly stated that one cannot use both jquery-migrate 1.4 and 3 at the same time, so maybe solution 1 above (jquery-migrate downgrade from 3 to 1.4) would also require a downgrade to jquery 2.
Solution 2 is the cleanest, but might take some time, which may or may not be acceptable.
Solution 3 (ship with known flaws) is not really an option, imho.

from sympa.

ikedas avatar ikedas commented on September 24, 2024

I see we had to use jquery-migrate 1.4. I'll check again if Sympa works with it.

from sympa.

ikedas avatar ikedas commented on September 24, 2024

Ok, closed by now.

from sympa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.