Bugs: Browse | Submit New | Admin

[#74] raw_response includes an odd line

Date:
2003-09-05 11:32
Priority:
3
Submitted By:
Fernando Arbeiza (sileno)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
raw_response includes an odd line

Detailed description
Hi:

I have been using ruby-freedb in a script for quite some time and it
works like a charm.

I have not modified the script for months, but now I want to save the
results in a local database. I thought I could save the raw_response
variable in a file (following the freedb database format). But then, I
realize that the first line of that variable is something like:

    210 misc d0123e11 CD database entry follows (until terminating `.')

which seems like a response from the server.

I did not expect that line to appear. I think the raw_response variable
should contain (quoting from the source of ruby-freedb.rb):

    string containing raw entry from freedb database

But it contains the raw response from the server, not a valid entry from
a freedb database (perhaps raw_response is not a suitable name).

That's why I think this is a bug. If you think that raw_response
contains what it should, it's OK. It should be easy to delete that line
in my script.

I append a patch against version 0.5 of the library [1], just to show
the way I think it should be done.

[1] I don't know why but I have no anonymous access to the CVS pserver
to download the latest version.

Regards and thanks again for your work

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
ruby-freedb-0.5.patch Patch against ruby-freedb-0.5 Download

Changes:

Field Old Value Date By
File Added7: ruby-freedb-0.5.patch2003-09-05 11:32sileno