CouchDB 1.0.1 must depends by libjs-jquery >= 1.4.2

Bug #660483 reported by Michele Renda
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
couchdb (Ubuntu)
Fix Released
Undecided
Eric Casteleijn
Lucid
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: couchdb

If libjs-jquery is a previous version, you can have some JavaScript error in Futon interface.

Revision history for this message
Petri Lehtinen (petri) wrote :

Databases cannot be compacted from Futon with jQuery 1.3, for example.

Changed in couchdb (Ubuntu):
status: New → Confirmed
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for reporting this to Ubuntu. Maverick already has this version of libjs-jquery. Is there a problem somewhere?

Changed in couchdb (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Michele Renda (mic-renda) wrote :

No, the only problem is when you have to backport CouchDB 1.0.1 from Maverick to Lucid.
In Maverick, the default libjs-jquery is 1.4.2 so all is ok.

John Lenton (chipaca)
Changed in couchdb (Ubuntu):
assignee: nobody → Eric Casteleijn (thisfred)
status: Incomplete → Confirmed
Revision history for this message
Petri Lehtinen (petri) wrote :

To repeat, this is only a problem in the backported Lucid package. The problem is that Lucid has too old jQuery. CouchDB ships a newer jQuery but it's not used but symlinked to the system jQuery instead. The easiest fix would be to not symlink to the system jQuery, even though lintian warns about this.

This is a very frustrating bug as Futon (the web UI of CouchDB) is almost unusable. It seems to depend quite heavily on features of the newer jQuery.

Revision history for this message
Petri Lehtinen (petri) wrote :

Here's patch. I tested it myself and it made Futon work as expected.

tags: added: patch
Revision history for this message
Petri Lehtinen (petri) wrote :

Updated patch: The changelog entry now mentions the bug id.

Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks; looks good, uploaded

Revision history for this message
Martin Pitt (pitti) wrote :

Closing main task as per comments, adding lucid task.

Please add a test case, so that this can actually be verified. Thanks!

Changed in couchdb (Ubuntu):
status: Confirmed → Fix Released
Changed in couchdb (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted couchdb into lucid-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!

Revision history for this message
Petri Lehtinen (petri) wrote :

Test case:

1. Open the CouchDB web interface in your browser: http://localhost:5984/_utils/

2. Open any database by clicking its name (the built-in "_users" database, for example).

3. Click the "Compact & Cleanup" link near the top of the page.

4. A popup appears. Select the "Compact Database" radio button (if not already selected) and click "Run".

Error outcome: An alert box appears, with the following text: "The database could not be compacted: Content-Type must be application/json".

Expected outcome: The popup disappears, and the database compaction begins. If the database is large enough (a few hundred megabytes), you may be quick enough to see a corresponding "Database Compaction" line in the table on the status page (click the "Status" link on the right pane below the CouchDB logo to get to the status page).

If you still get the error outcome with the fix, please force-refresh the page (Shift-Ctrl-R on Firefox) and try again. This is to make sure that your browser really loads the newer jQuery.

Revision history for this message
Petri Lehtinen (petri) wrote :

I installed the proposed package to one of my servers and it works fine. I'm not sure if I'm the correct person to verify, though :)

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for testing!

tags: added: verification-done
removed: verification-needed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in couchdb (Ubuntu Lucid):
status: Fix Committed → Won't Fix
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.