cvsps chokes on servers that print more than one "M" response to "version" command
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | cvsps (Debian) |
Fix Released
|
Unknown
|
||
| | cvsps (Ubuntu) |
Medium
|
Brian Murray | ||
| | Trusty |
Undecided
|
Brian Murray | ||
| | Utopic |
Undecided
|
Brian Murray | ||
Bug Description
[Impact]
If the CVS server prints more than one "M" response line to the "version" command, cvsps (in --cvs-direct mode) prints "cvs_direct: protocol error reading version" and fails to read the repository.
For example, cvsps does not like the following exchange:
Client: version
Server: M Concurrent Versions System (CVS) 1.12.13 (client/server)
Server: M with CVSACL Patch 1.2.5 (cvsacl.
Server: ok
(Note: cvsps has been deprecated upstream in favor of cvs-fast-export, but it is still used by 'git cvsimport'.)
[Test Case]
Download and run the attached test script. The output looks like this if the installed version of cvsps has the bug:
cvs_direct initialized to CVSROOT /foo
cvs_direct: protocol error reading version
ERROR: cvsps does not appear to work with multi-line version strings
and it looks like this if the bug has been fixed:
cvs_direct initialized to CVSROOT /foo
test passed
[Regression Potential]
No immediately obvious risks.
Related branches
- Brian Murray: Approve on 2015-02-11
-
Diff: 55 lines (+35/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/06-discard-extra-version-lines.patch (+27/-0)
debian/patches/series (+1/-0)
- Ubuntu branches: Pending requested 2015-02-15
-
Diff: 1023 lines (+965/-2)7 files modified.pc/06-discard-extra-version-lines.patch/cvs_direct.c (+925/-0)
.pc/applied-patches (+1/-0)
cvs_direct.c (+2/-1)
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/06-discard-extra-version-lines.patch (+27/-0)
debian/patches/series (+1/-0)
- Ubuntu branches: Pending requested 2015-02-15
-
Diff: 1023 lines (+965/-2)7 files modified.pc/06-discard-extra-version-lines.patch/cvs_direct.c (+925/-0)
.pc/applied-patches (+1/-0)
cvs_direct.c (+2/-1)
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/06-discard-extra-version-lines.patch (+27/-0)
debian/patches/series (+1/-0)
| Richard Hansen (rhansen) wrote : | #2 |
I have uploaded fixed packages for vivid, utopic, and trusty to my PPA:
https:/
| Changed in cvsps (Debian): | |
| status: | Unknown → New |
The attachment "debdiff for vivid" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
| Changed in cvsps (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → Medium |
| tags: | added: trusty utopic vivid |
| Brian Murray (brian-murray) wrote : | #4 |
The debdiff could use a couple of changes, the package version should not be 2.1-6build1+bug1413084.0 but rather 2.1-6ubuntu1. Additionally, it'd be good if you were to follow the patch tagging guidelines at http://
| Brian Murray (brian-murray) wrote : | #5 |
Once you've made the changes I suggested I'll be happy to sponsor the patch.
| Richard Hansen (rhansen) wrote : | #6 |
Here's a revised debdiff. The diff is the same as the tip commit of the lp:~a7x/ubuntu/vivid/cvsps/bug1413084 bzr branch, which I have proposed for merging (I hope that is correct procedure...).
THANK YOU SO MUCH for sponsoring!
It would be great to SRU this. Do you think that would be acceptable? (After it has been merged into vivid, of course.)
| Brian Murray (brian-murray) wrote : | #7 |
I've uploaded this to Vivid. Yes, we can SRU this please make sure to update the bug description following http://
| Changed in cvsps (Ubuntu): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| status: | Triaged → In Progress |
| Launchpad Janitor (janitor) wrote : | #8 |
This bug was fixed in the package cvsps - 2.1-6ubuntu1
---------------
cvsps (2.1-6ubuntu1) vivid; urgency=medium
* Discard extra "M" response lines when reading the server's
version. (LP: #1413084)
-- Richard Hansen <email address hidden> Wed, 11 Feb 2015 12:13:52 -0800
| Changed in cvsps (Ubuntu): | |
| status: | In Progress → Fix Released |
| Richard Hansen (rhansen) wrote : | #9 |
Attached is a script that can be used to test whether cvsps has been fixed or not.
| description: | updated |
| Richard Hansen (rhansen) wrote : | #10 |
Attached is a debdiff for utopic.
| Richard Hansen (rhansen) wrote : | #11 |
Attached is a debdiff for trusty.
| Brian Murray (brian-murray) wrote : | #12 |
I've sponsored both the trusty and utopic debdiffs. Thanks for working on this!
| Changed in cvsps (Ubuntu Trusty): | |
| status: | New → In Progress |
| Changed in cvsps (Ubuntu Utopic): | |
| status: | New → In Progress |
| Changed in cvsps (Ubuntu Trusty): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| Changed in cvsps (Ubuntu Utopic): | |
| assignee: | nobody → Brian Murray (brian-murray) |
Hello Richard, or anyone else affected,
Accepted cvsps into trusty-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in cvsps (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Changed in cvsps (Ubuntu Utopic): | |
| status: | In Progress → Fix Committed |
| Chris J Arges (arges) wrote : | #14 |
Hello Richard, or anyone else affected,
Accepted cvsps into utopic-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| tags: |
added: verification-done-utopic verification-needed-trusty removed: verification-needed |
| tags: |
added: verification-done verification-done-trusty removed: verification-needed-trusty |
| Richard Hansen (rhansen) wrote : | #15 |
I added a plain verification-done tag (in addition to verification-
| Launchpad Janitor (janitor) wrote : | #16 |
This bug was fixed in the package cvsps - 2.1-6ubuntu0.
---------------
cvsps (2.1-6ubuntu0.
* Discard extra "M" response lines when reading the server's
version. (LP: #1413084)
-- Richard Hansen <email address hidden> Wed, 11 Feb 2015 12:13:52 -0800
| Changed in cvsps (Ubuntu Utopic): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for cvsps has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #18 |
This bug was fixed in the package cvsps - 2.1-6ubuntu0.
---------------
cvsps (2.1-6ubuntu0.
* Discard extra "M" response lines when reading the server's
version. (LP: #1413084)
-- Richard Hansen <email address hidden> Wed, 11 Feb 2015 12:13:52 -0800
| Changed in cvsps (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Changed in cvsps (Debian): | |
| status: | New → Fix Released |


Attached is a debdiff that includes a patch to fix this bug.