Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-1329

Begin / End date not verifying the data before trying to use it?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • NGS - Release Candidate 2
    • NGS - Release Candidate 1
    • None
    • None

      When editing a "member of" AR, I tried to add ???? (any other non-integer seems to do the same) as the end date (to see what happened, mainly). The result was most curious.

      If I leave the start date blank and add ???? as end date, I get a "Value must be an integer" notice. All fine.
      If I put a year in the start date and add ???? as end date, I get a disaster, starting with:
      Caught exception in MusicBrainz::Server::Controller::Edit::Relationship->edit "Date::Calc::PP::Delta_Days(): Date::Calc::Delta_Days(): not a valid date at /home/musicbrainz/musicbrainz-server/script/../lib/MusicBrainz/Server/Form/Role/DatePeriod.pm line 27"

            acid2 Oliver Charles
            reosarevok Nicolás Tamargo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                NGS - Release Candidate 2