Built-in httpd does not render any widget

Bug #886456 reported by Progger
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
witty (Ubuntu)
Fix Released
Medium
Unassigned
Oneiric
Fix Released
Medium
Unassigned

Bug Description

Release: Ubuntu 11.10
Package: witty 3.1.10-1
Result script contains errors. Bug is only present on 11.10.
More info: http://redmine.webtoolkit.eu/boards/2/topics/3171

== SRU Test Procedure ==

apt-get install witty
/usr/lib/Wt/examples/javascript/javascript.wt --http-address 127.0.0.1 --http-port 8080 --docroot .

Visit http://127.0.0.1:8080/

If you see an empty page and your javascript console shows errors, you have hit this bug.

Revision history for this message
Progger (progger-ru) wrote :
Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

Thank you for the bug report, Koen contacted me yesterday about this and I will be working soon.

Could you please confirm this does not happen in 11.04?

Also, what is the application you are using to test?

Revision history for this message
Progger (progger-ru) wrote :

On 11.04 it worked. For test I use witty-examples

Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

I've reproduced the problem and I'm working on it.

Could you please confirm on 11.04 you were using Wt 3.1.10-1~natty~pgquiles1 from the Wt PPA?

Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

I've compared the jQuery versions related to this issue:

- jQuery 1.4b1 (bundled with Wt 3.1.10)
- jQuery 1.5-2ubuntu1 (shipped by Ubuntu 11.04)
- jQuery 1.6.2-1ubuntu2 (shipped by Ubuntu 11.10)

I regenerated the jQuery packages on 11.04 and 11.10, and applied filetostring.cmake to convert them to C++.

This is the result:

pgquiles@oneiric64:~/wt/a$ md5sum *
847945778a448af8cd0af49c4e69a6ee jquery.js-1.5-natty
847945778a448af8cd0af49c4e69a6ee jquery.js-1.5-oneiric
12840be281cca027968c56e19ebdf6ec jquery.js-1.6.2-natty
12840be281cca027968c56e19ebdf6ec jquery.js-1.6.2-oneric
db9b022b25cf21e6b8023ff686d637ac JQuery_JS.C-1.4b1-natty
db9b022b25cf21e6b8023ff686d637ac JQuery_JS.C-1.4b1-oneiric
f0803b771699e16860fb90f64899ffac JQuery_JS.C-1.5-natty
83234f7c275d96b9223ffa9067dc77e5 JQuery_JS.C-1.5-oneiric
9e8290f9029bdb6930377e7a144d4008 JQuery_JS.C-1.6.2-natty
9e8290f9029bdb6930377e7a144d4008 JQuery_JS.C-1.6.2-oneiric
6cb36d071e8e0f90c747d99d50a82938 jquery.min.js-1.5-natty
a1120f122bef83736945b57a82d7ef99 jquery.min.js-1.5-oneiric
9aa1f726fb931af7714ab894702ae051 jquery.min.js-1.6.2-natty
9aa1f726fb931af7714ab894702ae051 jquery.min.js-1.6.2-oneiric

Apparently, there is no difference in the jquery.min.js or the C++ code generated by filetostring from 11.04 or from 11.10.

(There are differences in jQuery 1.5, but they do not affect us, as that's what was used in 11.04, and that version worked fine)

Maybe Wt does is incompatible with jQuery 1.6.2? (changing from jQuery 1.4 to 1.5/1.6 has reportedly caused problems in the Wordpress package).

According to Koen, the problem is a missing '\'. I can't see at the moment how could an incompatibility cause a disappearing '\'. I'm still trying to isolate the problem.

Revision history for this message
Progger (progger-ru) wrote :

Yes, on 11.04 I use Wt 3.1.10-1~natty~pgquiles1

Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

Please try 3.1.10a from the Wt PPA and tell me if it solves your problem.

https://launchpad.net/~pgquiles/+archive/wt

Changed in witty (Ubuntu):
assignee: nobody → Pau Garcia i Quiles (pgquiles)
status: New → In Progress
Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :
Changed in witty (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

Reporter confirms 3.1.10a fixes the problem

Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

ubuntu-sponsors, please rebuild this package and include in oneiric-updates

Revision history for this message
Colin Watson (cjwatson) wrote :

Pau, could you please supply a minimal patch against the version in oneiric, following https://wiki.ubuntu.com/StableReleaseUpdates? I looked at your PPA and I don't quite see how it solves the problem; oneiric has 3.1.10-1, and the diff between that and the version in your PPA (https://launchpadlibrarian.net/84533270/witty_3.1.10-1_3.1.10-1a~oneiric~pgquiles1.diff.gz) indicates merely a no-change rebuild. If that's all that's required, could you explain why a no-change rebuild fixes this?

I'm sorry if I should have been able to work this out from the above and failed to do so.

Revision history for this message
Pau Garcia Quiles (pgquiles) wrote :

Colin,

That's exactly it: a no-change rebuild.

Why it fixes the problem? Upstream identified the problem as a missing "\" in jQuery.min.js:

http://redmine.emweb.be/boards/2/topics/3171#message-3201

When building Wt, jQuery is embedded into the libwt.so library. I'm not sure why, but either CMake (failing substitution?) or libjs-jquery caused the problem. Now that CMake and/or libjs-jquery work fine, building Wt embeds the right jQuery.min.js.

Sorry for not being more precise, but I have not been able to isolate it further.

description: updated
description: updated
Revision history for this message
Stefano Rivera (stefanor) wrote :

Uploaded to oneiric-proposed, pending SRU team review. Also uploaded to precise.

Please don't use "Fix Committed" for ubuntu bugs. About the only time we ever use it, is for uploads that need to be manually accepted, like this oneiric-proposed one.

Changed in witty (Ubuntu Oneiric):
status: New → Fix Committed
Changed in witty (Ubuntu):
importance: Undecided → Medium
Changed in witty (Ubuntu Oneiric):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package witty - 3.1.10-1build1

---------------
witty (3.1.10-1build1) precise; urgency=low

  * No change rebuild to pick up newer jQuery (LP: #886456)
 -- Stefano Rivera <email address hidden> Mon, 14 Nov 2011 00:45:06 +0200

Changed in witty (Ubuntu):
status: Fix Committed → Fix Released
Changed in witty (Ubuntu):
assignee: Pau Garcia i Quiles (pgquiles) → nobody
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Progger, or anyone else affected,

Accepted witty into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

tags: added: verification-needed
Revision history for this message
delib (delib) wrote :

Could not reproduce the bug, but also did not reproduce the bug using the proposed version. Tested using an Amazon aws account and connected to witty from firefox on an oneiric system.

Revision history for this message
Stefano Rivera (stefanor) wrote :

I was hoping the submitter would verify this, but I can myself.

The rebuild works for me, using the test procedure I noted in the description, on i386.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package witty - 3.1.10-1build0.1

---------------
witty (3.1.10-1build0.1) oneiric-proposed; urgency=low

  * No change rebuild to pick up newer jQuery (LP: #886456)
 -- Stefano Rivera <email address hidden> Mon, 14 Nov 2011 01:05:18 +0200

Changed in witty (Ubuntu Oneiric):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.