Bug 253347 - www/davical: Fails to run, missing dependency: session
Summary: www/davical: Fails to run, missing dependency: session
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alexandre C. Guimarães
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-02-08 14:02 UTC by Dirk Meyer
Modified: 2021-03-04 16:17 UTC (History)
2 users (show)

See Also:
dinoex: maintainer-feedback+
rigoletto: merge-quarterly+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Meyer freebsd_committer freebsd_triage 2021-02-08 14:02:20 UTC
FreeBSD 12.2, PHP 7.4

Login successful, when trying to "Create Principal" page fails with:

Exception [0] Call to undefined function session_id()
At line 20 of /usr/local/www/davical/inc/csrf_tokens.php
================= Stack Trace ===================
/usr/local/www/davical/htdocs/admin.php[28] include_once()
/usr/local/www/davical/inc/ui/principal-edit.php[1143] principal_editor()
/usr/local/www/davical/inc/ui/principal-edit.php[190] getCsrfField()
/usr/local/www/davical/inc/csrf_tokens.php[95] getCsrf()
/usr/local/www/davical/inc/csrf_tokens.php[79] sessionExists()


Workarund:
pkg install php74-session

Suggested Fix:
Please add "session" to "USE_PHP".
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-02-08 15:17:18 UTC
A commit references this bug:

Author: rigoletto
Date: Mon Feb  8 15:16:59 UTC 2021
New revision: 564713
URL: https://svnweb.freebsd.org/changeset/ports/564713

Log:
  www/davical: add missing dependecy.

  PR:		253347
  Submitted by:	dinoex

Changes:
  head/www/davical/Makefile
Comment 2 Alexandre C. Guimarães freebsd_committer freebsd_triage 2021-02-08 15:17:50 UTC
Thank you. ;-D
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2021-02-09 01:42:22 UTC
(In reply to Alexandre C. Guimarães from comment #2)

^Triage: Is quarterly also broken? If so:

MFH: 2021Q1 (blanket: missing dependency)

otherwise:

Set merge-quarterly flag to '-'
Comment 4 commit-hook freebsd_committer freebsd_triage 2021-02-24 15:13:45 UTC
A commit references this bug:

Author: rigoletto
Date: Wed Feb 24 15:12:56 UTC 2021
New revision: 566480
URL: https://svnweb.freebsd.org/changeset/ports/566480

Log:
  MFH: r564713

  www/davical: add missing dependecy.

  PR:		253347
  Submitted by:	dinoex

Changes:
_U  branches/2021Q1/
  branches/2021Q1/www/davical/Makefile
Comment 5 cayen14422 2021-03-04 16:17:20 UTC
MARKED AS SPAM