Bug 96677 - freedb submissions are rejected with unexpected end on line 1
Summary: freedb submissions are rejected with unexpected end on line 1
Status: RESOLVED FIXED
Alias: None
Product: kscd
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.4.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Richard Lärkäng
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 02:00 UTC by Trane Francks
Modified: 2005-12-14 19:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trane Francks 2005-01-10 02:00:38 UTC
Version:           1.4.1 (using KDE 3.2.3, compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.4.26

I've submitted two entries to freedb -- two different albums -- but both were rejected. I received the following error message from freedb:

[ begin quote ]

Your freedb submission was rejected for the following reason:

Invalid DB submission: unexpected end on line 1

Please fix the problem before you resubmit it. Only the first
error in your submission was noted - there may be others. If you
continue to have trouble, it may be due to a bug in your CD
player software. If you suspect this, try acquiring a newer version.

The rejected submission follows:

>> From trane@gol.com Mon Jan 10 00:08:29 2005
>> Received: from smtp02.dentaku.gol.com ([203.216.5.72])
>>  by dtype.org with esmtp (Exim 3.35 #1 (Debian))
>>  id 1Cnn6j-00050p-00
>>  for <freedb-submit@freedb.org>; Mon, 10 Jan 2005 00:08:29 +0000
>> Received: from localhost ([127.0.0.1])
>>  by smtp02.dentaku.gol.com with esmtp (Dentaku)
>>  id 1Cnn6f-0006H0-TM
>>  for <freedb-submit@freedb.org>; Mon, 10 Jan 2005 09:08:27 +0900
>> Received: from 203-216-100-076.dsl.gol.ne.jp ([203.216.100.76] helo=saturn.gol.com)
>>  by smtp02.dentaku.gol.com with esmtp (Dentaku)
>>  id 1Cnn6f-0006Gk-A5
>>  for <freedb-submit@freedb.org>; Mon, 10 Jan 2005 09:08:25 +0900
>> From: Trane Francks <trane@gol.com>
>> Subject: cddb rock 9c09ca0c
>> To: freedb-submit@freedb.org
>> X-Virus-Scanned: by AMaViS GOL
>> X-Abuse-Complaints: abuse@gol.com
>> Message-Id: <E1Cnn6j-00050p-00@dtype.org>
>> Date: Mon, 10 Jan 2005 00:08:29 +0000
>>
>>


If you need assistance, please take a look at the FAQ
at http://www.freedb.org/modules.php?name=Sections&sop=viewarticle&artid=26
If the FAQ doesn't help, send an e-mail to: rejection@freedb.org

Response generated by the CDDB daemon.


[ end quote ]

It appears that no track information is being sent. The information is cached locally without any problem.
Comment 1 Richard Lärkäng 2005-04-09 14:17:03 UTC
Can you reproduce this problem? I have never seen this problem, so I would need some more info to be able to fix it.

If you can reproduce it, does upgrading to a newer version help?
Comment 2 Trane Francks 2005-04-17 03:22:22 UTC
Sorry for the delay in responding. I've been traveling abroad on business. Since posting this bug report, I've upgraded to Slackware 10.1, which includes KsCD 1.4 (Using KDE 3.3.2). I just submitted another album and it, too, failed for the same reason. The message content, however, is different in that track information appears to be sent, but appears in the header section rather than message body:

[ begin quote ]

Your freedb submission was rejected for the following reason:

Invalid DB submission: unexpected end on line 1

Please fix the problem before you resubmit it. Only the first
error in your submission was noted - there may be others. If you
continue to have trouble, it may be due to a bug in your CD
player software. If you suspect this, try acquiring a newer version.

The rejected submission follows:

>> From trane@gol.com Sun Apr 17 01:12:27 2005
>> Received: from smtp02.dentaku.gol.com ([203.216.5.72])
>> 	by dtype.org with esmtp (Exim 3.35 #1 (Debian))
>> 	id 1DMyKp-0004qs-00
>> 	for <freedb-submit@freedb.org>; Sun, 17 Apr 2005 01:12:27 +0000
>> Received: from localhost ([127.0.0.1])
>> 	by smtp02.dentaku.gol.com with esmtp (Dentaku)
>> 	id 1DMyKm-0007Ih-Nv
>> 	for <freedb-submit@freedb.org>; Sun, 17 Apr 2005 10:12:24 +0900
>> Received: from 203-216-96-184.dsl.gol.ne.jp ([203.216.96.184] helo=saturn.gol.com)
>> 	by smtp02.dentaku.gol.com with esmtps (Dentaku)
>> 	id 1DMyKm-0007Hy-Bk
>> 	for <freedb-submit@freedb.org>; Sun, 17 Apr 2005 10:12:24 +0900
>> From: Trane Francks <trane@gol.com>
>> Subject: cddb blues 850a400b
>> To: freedb-submit@freedb.org
>> Content-Type: text/plain; charset="utf-8";
>>  # xmcd
>>  #
>>  # Track frame offsets:
>>  #	150
>>  #	27105
>>  #	45598
>>  #	60710
>>  #	75873
>>  #	88490
>>  #	101368
>>  #	130673
>>  #	155138
>>  #	167520
>>  #	184465
>>  # Disc length: 2626 seconds
>>  # Revision: 2
>>  #
>>  # Submitted via: libkcddb 0.10
>>  DISCID=850a400b
>>  DTITLE=Best Sellers Jazz / Jazz Standards
>>  DYEAR=
>>  DGENRE=Jazz
>>  TTITLE0=Autumn Leaves (Bill Evans)
>>  TTITLE1=My Funny Valentine (Kenny Drew)
>>  TTITLE2=Night And Day (Sonny Rollins)
>>  TTITLE3=Angel Eyes (Ray Bryant)
>>  TTITLE4=Misty (Erroll Garner)
>>  TTITLE5=Yesterdays (Bud Powell)
>>  TTITLE6=Softly As In A Morning Sunrise (Wynton Kelly)
>>  TTITLE7=You'd Be So Nice To Come Home To (Art Pepper)
>>  TTITLE8=Stella By Starlight (Stan Getz)
>>  TTITLE9=What's New (John Coltrane)
>>  TTITLE10=Summertime (Charlie Parker)
>>  EXTD=
>>  EXTT0=
>>  EXTT1=
>>  EXTT2=
>>  EXTT3=
>>  EXTT4=
>>  EXTT5=
>>  EXTT6=
>>  EXTT7=
>>  EXTT8=
>>  EXTT9=
>>  EXTT10=
>>  PLAYORDER=
>> Message-Id: <E1DMyKm-0007Hy-Bk@smtp02.dentaku.gol.com>
>> Date: Sun, 17 Apr 2005 10:12:24 +0900
>> X-Virus-Scanned: by AMaViS GOL
>> X-Abuse-Complaints: abuse@gol.com
>>
>>


If you need assistance, please take a look at the FAQ
at http://www.freedb.org/modules.php?name=Sections&sop=viewarticle&artid=26
If the FAQ doesn't help, send an e-mail to: rejection@freedb.org

Response generated by the CDDB daemon.


[ end quote ]

I hope this helps. If you need further information, just let me know.
Comment 3 Gianni Bergamo 2005-09-02 16:42:57 UTC
I have the same problem. KsCD 1.4, KDE 3.3.2 on Slackware 10.1
Comment 4 Richard Lärkäng 2005-10-09 20:54:10 UTC
SVN commit 468936 by larkang:

Make sure there's an empty line between the headers and the body.

Doesn't seem to make a difference here (worked before, and works now too)
but could help with the problems in #96677

CCBUG: 96677


 M  +1 -1      smtpsubmit.cpp  


--- branches/KDE/3.5/kdemultimedia/libkcddb/smtpsubmit.cpp #468935:468936
@@ -52,7 +52,7 @@
   void SMTPSubmit::makeDiskData( const CDInfo& cdInfo, const TrackOffsetList& offsetList )
   {
     diskData_ = "Content-Type: text/plain; charset=\"utf-8\";";
-    diskData_ += "\n";
+    diskData_ += "\n\n";
 
     Submit::makeDiskData(cdInfo, offsetList);
   }
Comment 5 Richard Lärkäng 2005-10-09 21:00:15 UTC
It would be great if any one of you with the problem could test the upcoming 3.5 beta2 (should be released some time this week), and see if my commit fixed the problem.

But from KDE 3.4 the default submit-method was changed to HTTP, so you need to make sure it's using SMTP to be sure that the bug is really gone.
Comment 6 Richard Lärkäng 2005-12-14 18:58:54 UTC
Closing, since I think this was fixed by my commit. Please reopen if you can reproduce it with KDE newer than 3.5 beta 2.
Comment 7 Richard Lärkäng 2005-12-14 19:59:42 UTC
*** Bug has been marked as fixed ***.