Can't administer releases, throws server 500

Created on 25 August 2023, 10 months ago
Updated 12 September 2023, 10 months ago

I just released Group 2.2.0 and 3.2.0, meaning 2.1.0 and 3.1.0 are unsupported. I can't save the form like this, though, without getting a server 500 error. Please advise.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Releases

Created by

πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kristiaanvandeneynde
  • Status changed to Closed: outdated 10 months ago
  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Seems to work now, not that I did anything since reporting this :)

  • Status changed to Active 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    The underlying error was

    PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'supported' at row 1: UPDATE {project_release_supported_versions} SET supported=:db_update_placeholder_0, recommended=:db_update_placeholder_1#012WHERE (nid = :db_condition_placeholder_0) AND (branch = :db_condition_placeholder_1) ; Array#012(#012 [:db_update_placeholder_0] => #012 [:db_update_placeholder_1] => 0#012 [:db_condition_placeholder_0] => 711148#012 [:db_condition_placeholder_1] => 7.x-1.#012)#012 in project_release_project_edit_form_submit() (line 189 of /var/www/drupal.org/htdocs/sites/all/modules/project/release/includes/project_edit_releases.inc).

    So somehow an empty string got submitted instead of zero. That form submit function could benefit from type casting to avoid this happening again.

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    The 7 branch checkbox was disabled for me, don't know if that helps

  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    Since Drupal 7’s end of life is coming, currently-unsupported 7-compatible contrib versions can not be marked as supported.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 7.x + Environment: PHP 5.6 & MySQL 5.5
    last update 10 months ago
    run-tests.sh fatal error
  • @drumm opened merge request.
    • drumm β†’ committed c09b1d10 on 7.x-2.x
      Issue #3383396: Sanitize admin releases values before saving to DB
      
  • Status changed to Fixed 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    Merged & will be deployed later today.

  • πŸ‡§πŸ‡ͺBelgium kristiaanvandeneynde Antwerp, Belgium

    Cool, thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024