You are here: Foswiki>Tasks Web>Item14317 (18 Feb 2017, GeorgeClark)Edit Attach

Item14317: Under some conditions, JEditableContrib attempts to load an .uncompressed.js source, which is not in the distribution.

pencil
Priority: Urgent
Current State: Closed
Released In: 2.1.3
Target Release: patch
Applies To: Extension
Component: JEditableContrib
Branches: Release02x01 master Item14288
Reported By: IgorGiunta
Waiting For:
Last Change By: GeorgeClark
Firebug tells me:

Attention
Attachment ” does not exist
You are trying to System/JEditableContrib/jquery.jeditable.uncompressed.js an attachment that does not exist.

After a brute trial

www-data@foswiki:~/Foswiki-2.1.3-Beta2/pub/System/JEditableContrib$ cp -p jquery.jeditable.js jquery.jeditable.uncompressed.js

The error disappears.

-- IgorGiunta - 02 Feb 2017

This extension ships with two versions of the javascript.
  • jquery.editable.js
  • jquery.editable_src.js

The _src file is the original uncompressed source, and the other is the compressed (minified) version. We should also have shipped a .gz file, which some web server configurations will automatically send if gzip compression is accepted.

The code in lib/Foswiki/Contrib/JEditableContrib/JEDITABLE.pm specifies:
    my $src     = (DEBUG) ? '_src' : '';
...
        javascript    => ["jquery.jeditable${src}.js"]

From there I'm not sure how jquery.jeditable.uncompressed.js is generated.

Michael, Could you check this out? Is the JQueryPlugin inserting the ".uncompressed" somehow, with DEBUG enabled? This extension seems inconsistent.

-- GeorgeClark - 02 Feb 2017

You are right, the DEBUG modus of the JQueryPlugin is activated and it tells
This flag enables the debug mode for JQueryPlugin and all of its sub-modules. Instead of loading jquery.myplugin.js, it will load jquery.myplugin.uncompressed.js.

PS: no gzipped version has been shipped (status 24.1.2017)

-- IgorGiunta - 03 Feb 2017

This is a packaging error of JEditableContrib. JQueryPlugin's DEBUG mode isn't compatible with it either.

-- MichaelDaum - 03 Feb 2017
 

ItemTemplate edit

Summary Under some conditions, JEditableContrib attempts to load an .uncompressed.js source, which is not in the distribution.
ReportedBy IgorGiunta
Codebase 2.1.3 beta2
SVN Range
AppliesTo Extension
Component JEditableContrib
Priority Urgent
CurrentState Closed
WaitingFor
Checkins distro:64f00248e312
TargetRelease patch
ReleasedIn 2.1.3
CheckinsOnBranches Release02x01 master Item14288
trunkCheckins
masterCheckins distro:64f00248e312
ItemBranchCheckins distro:64f00248e312
Release02x01Checkins distro:64f00248e312
Release02x00Checkins
Release01x01Checkins
Topic revision: r8 - 18 Feb 2017, GeorgeClark - This page was cached on 27 Feb 2017 - 12:17.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License