Repository navigation
5.0.0 Release Candidate 3 - #540
Merged
Merged
Conversation
The upgrade path for 32-character MD5 hashes compared with ==, so a stored "magic hash" (0e followed by digits) matched any password whose MD5 had the same form. Use a strict, constant-time comparison. Fixes #474. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
CUser::generateToken() built the feed token from md5(time() . $userId . $token . time()), which can be guessed by trying the seconds around its creation. Use bin2hex(random_bytes(20)) instead. getIdByToken() now returns 0 unless the token's owner can still log in (CUser::isActive()), so calendar.php stops serving a feed once its user loses access. It also strips the token to [A-Za-z0-9] itself instead of relying on the caller, and returns an int. Fixes #436. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
modules/files/addedit.php still included modules/helpdesk/config.php whenever the add-on was installed, and read $object->file_helpdesk_item, which CFile doesn't have. Both have done nothing since the HelpDesk integration was removed in 6292590 (2014), and running another module's config file from a core page means anything written into that file runs on the Files page too. Remove both blocks and the stale comment about the property in files.class.php. Fixes #466. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
isActiveModule() interpolated its argument into the WHERE clause and ran a query on every call (TitleBlock calls it once per breadcrumb). It now loads mod_directory => mod_active for all modules on the first call and answers from that array, so no request data reaches SQL and repeated calls are free. It returns the same values as before: mod_active, or false for a module that isn't installed. w2p_System_Module clears the cache when a module is stored (installed, toggled, reordered) or removed, so the change shows up in the same request. Fixes #457. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
…access index.php checked the form token and then ran modules/<m>/<dosql>.php (or a=do_*/domodsql) for any logged-in user, so every handler had to do its own permission checks, and one that forgot could be reached by users who can't open the module (or by anyone, if the module is inactive). Before running a handler, require that module m is active and that the user can access it, and redirect to ACCESS_DENIED otherwise. Three handlers are self-service: users without the Users or System module still save their own details (users/do_user_aed), preferences (system/do_preference_aed) and calendar feed token (users/do_user_token). They stay reachable, but only when the posted user id is the user's own and nothing is being deleted. That also stops a user without the Users module from regenerating someone else's feed token through do_user_token, which checks nothing itself. Checked with a Project worker (non_admin modules only) on the built-in server: their own preferences, details and feed token still save; system config, another user's token, user deletion, an inactive module's handler and a=do_syskey_aed are refused. Fixes #463. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
do_task_aed.php called CTask::moveTaskBetweenProjects() whenever the posted new_task_project differed from the task's project. That method rewrote task_project for the task and its subtree with direct queries and dropped its dependencies before store(), the first permission check, ran. The handler also ignored load()'s result. So anyone who could post to the handler could move any task, even one they can't see. - The handler stops with "invalid ID" when load() fails, and compares new_task_project with the stored project rather than the posted task_project (bind() overwrites it). - moveTaskBetweenProjects() refuses, before changing anything, unless the task is the loaded one and the user can edit it and can add a task to the target project (add on Tasks, view on the project, the same rule as the task add/edit page). It returns false with getError() set instead of redirecting, and the handler shows the error on the task. Checked from the CLI: an admin's move still moves the task and its subtask; a user whose role denies Tasks edit is refused and both tasks stay in the original project. Fixes #472. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
vw_tasks_inactive.php listed a project's inactive tasks with BaseObject::loadAll(), which applies no permissions, and concatenated the global $project_id into the WHERE clause. Build the list like the active task list (vw_tasks.php): join the project, apply CProject's and CTask's getAllowedSQL() for the current user, and cast $project_id to int. w2p_Output_HTML_TaskTable::buildRow() already skipped rows failing CTask::canView(), so item-level denials were hidden on screen; this stops the denied rows from being loaded at all and applies the project allow/deny lists too. Checked from the CLI: with a role denying one of two inactive tasks, only the other is listed; an admin sees both. Fixes #476. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
A first-time LDAP user goes through createsqluser(), and authenticate() then returned true whatever happened. createsqluser() stored the contact first, ignored the result of $u->store() and returned nothing, so when the user couldn't be created (a duplicate or invalid username, say) the bind "succeeded", the login failed later in CAppUI::login() with a generic error, and every attempt left another orphan contact. createsqluser() now returns whether the user was stored, deletes the contact it made when it wasn't (directly, since nobody is logged in for CContact::delete()), and authenticate() returns its result. Checked from the CLI: a new user is created with its contact; a second attempt with the same username returns false and leaves no extra contact (before, it returned nothing and left one). Fixes #440. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
loadAll() keys its result by user_id, but getIdByContactId() looked the result up by the contact id, so it only worked when the two ids were equal (as for the admin, which is all the existing test covered). Otherwise it returned '' with an undefined-key warning, or another user's id. Return the key of the first (only) row instead. Adds a test where the user id and contact id differ; it fails on the old code. Fixes #441. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
…us sessions Logging in regenerates the session id, so the logged-in session is a new row, and w2p_System_Session::write() inserted new rows without session_user. It stayed 0 until the user's next request, and CUser::hook_cron() deleted sessions with session_user = '' OR NULL, which MySQL also matches for 0. A cron run between the login and the next request logged the user out. - write() sets session_user (the access log id) and session_updated on insert as well as on update. - hook_cron() deletes sessions with session_user = 0 only once they are an hour old (times are stored in UTC), so a session in the middle of logging in is left alone. Expired sessions are still gc()'s job. Checked on the built-in server: right after the login POST the session row had session_user 0 before this change and the access log id after. hook_cron() removed a two-hour-old anonymous session and kept a fresh anonymous one and an old logged-in one. Fixes #445. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
isWorkingDay() did an unguarded require_once of modules/holiday/holiday_functions.class.php whenever the holiday module row was active. If the add-on's folder was removed or never deployed (a server move, deleting the folder instead of uninstalling), that was a fatal error, and task scheduling and every calendar view stopped loading. Treat the add-on as present only when it is active, the file exists, and it defines HolidayFunctions::isHoliday(). The check is still made once per request. The add-on (web2project/modules-holiday, master) still ships holiday/holiday_functions.class.php with a static HolidayFunctions::isHoliday($date, $userid = 0). Checked from the CLI with an active holiday row: without the folder the old code is fatal and the new one falls back to the working-day setting; with a stub add-on, its holiday is non-working. Fixes #452. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The class lives in classes/w2p/Exceptions/ but was named with the singular Exception, so web2project_autoload() looked for classes/w2p/Exception/FileSystem.class.php and any throw or catch of it would have failed with "Class not found". Use the plural, like w2p_Exceptions_Database. Nothing refers to the class yet. Fixes #467. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The autoloader included classes/w2p/<path>.class.php without checking
that it exists, so any w2p_* name without a file (a typo, a class an
add-on still expects, a class_exists() probe) raised two include
warnings, which show the absolute install path when display_errors is
on, before the real "Class not found".
Build the path, return when it isn't a file, and require_once it
otherwise. The function no longer returns a value; SPL ignores it.
class_exists('w2p_Output_PDFRenderer') is now a quiet false; real
classes still load.
Fixes #468.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
…ses/w2p The tests for w2p_Output_EmailManager and w2p_Output_Email_Template were the only files in unit_tests/src/Web2project, left from an earlier PSR-0 layout, and were named Web2project_Output_*Test. Move them next to the other core-class tests, mirroring classes/w2p/, and name them w2p_Output_EmailManagerTest and w2p_Output_Email_TemplateTest. unit_tests/src/ is gone. Their results are unchanged. The unused psr-0 Web2project => src/ entry in composer.json is left for the PSR-4 migration (#470). Fixes #469. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
…v6.0 These three deprecated methods logged notices saying they were already past their removal (v4.0, v4.0 and v5.0). Core no longer calls them, but add-ons do (HelpDesk calls all three), so keep them for 5.0 and say they go in v6.0. loadCalendarJS() now names its replacement, $AppUI->getTheme()->loadCalendarJS(), and the notices use the class name CAppUI. Chose option 2 from the issue (keep and re-date) because it doesn't break add-ons in a release candidate; removing them instead is a one-commit change if that's the preferred policy. Fixes #465. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
password-compat polyfills password_hash()/password_verify() for PHP < 5.5. web2project 5.0 requires PHP 8.3, where they are built in, so the package does nothing. Removed from composer.json, and from composer.lock with composer remove --no-install (no other package changes). Run composer install to drop it from vendor/. Fixes #479. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
format() split the format into single characters and replaced every one
it recognised, ignoring '%'. So literal letters became date parts
('Today: %A' gave '14:05:09o21ay: Wednesday', FMT_DATEISO's 'T' became
the time) and codes it didn't know came out as the bare letter (%w gave
'w', %a gave 'a', so FMT_DATERFC822 on the performance box was broken).
Parse '%' + code pairs and copy everything else through. Unknown codes
and a trailing '%' are output as written. Supported codes are those of
PEAR Date::format() that make sense here: %a %A %b %B %C %d %D %e %H %I
%j %m %M %n %p %P %r %R %S %t %T %U %w %y %Y %Z %%. Existing codes keep
their output; %U stays the ISO week (date('W')), as it always has been.
Audit: every literal format passed to a w2p_Utilities_Date in core uses
%-codes (the PHP-style 'Y-m-d' calls are on DateTime objects), as do the
FMT_* constants and the SHDATEFORMAT/TIMEFORMAT choices on the
preferences page, which all format as before.
Tests cover each code, padding, literal text, the FMT_* constants, an
unknown code and every preference format; all but the preference test
fail on the old code. The rest of the suite is unchanged.
Fixes #519.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
getBeginWeek() and getEndWeek() (the tasks-per-user report and tab)
read the weekday with Format('%w'), stepped to the Sunday before or
the Saturday after with subtractSeconds()/addSeconds(), and numbered
that day with %U, which is the ISO (Monday-start) week.
In practice they always returned the ISO week of the date itself:
format('%w') returned 'w' (0) until #519, and subtractSeconds() is a
no-op on PHP 8 because lib's Date_Span constructor is never called.
With %w fixed, stepping to the Sunday before and taking its ISO week
would put Monday-Saturday dates one week early, which is the mixed
numbering the issue points out.
Return the ISO week of the date directly, so the period and task weeks
use one numbering, the one %U and the report have been producing.
Checked: Sun 2026-10-18 is week 42; Mon 19 to Sun 25 are week 43.
Fixes #520.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
modules/history/index_table.php loaded every history row for the chosen module (or all of them), then called checkModuleItem() per row, which for 'view' works out the module's whole allowed-items list again each time (w2Pacl_nuclear() -> getAllowedRecords()). On a busy install that is tens of thousands of rows and queries per page view, all to show 50. - w2p_Extensions_Permissions::getViewableItems($module) returns the items checkModuleItem($module, 'view', $id) accepts. w2Pacl_nuclear() now uses it, and the special module classes (task_log, admin/users, events) moved into itemModuleClass(); the module lookup quotes its value instead of interpolating it. Behaviour is unchanged. - The history list gets the distinct tables for its filter, builds one condition per module with the same rules as before (System entries need System view, entries without an item need module view, the rest need a viewable item), and lets SQL count and LIMIT the page. The issue also says the ORDER BY uses a missing history_date column; on this branch the column is history_datetime (renamed in migration 060), so the existing oldest-first order was applied and is kept. Checked against the old code with 70 rows across projects, tasks, logins, modules and companies: identical rows and page links for an admin and for a worker whose role denies one project, for every filter and both pages. PHPUnit unchanged. Fixes #477. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
BaseObject::hook_postStore() bound $_POST to the object's custom fields on every store(), and w2p_Core_CustomFields::bind() set every field missing from $_POST to 0. So any store() that didn't come from the object's own add/edit form (Project Designer bulk updates, imports, cron jobs, a future API) wiped its custom field values, and even the form wiped the unpublished fields it doesn't show. - getHTML() in edit mode adds a hidden w2p_custom_fields[] entry for each field it shows. - bind() sets the fields present in the hash. A field the form showed but didn't post is an unticked checkbox and becomes 0, as before. Every other field keeps its loaded value. - hook_postStore() writes only the fields bind() set, and skips the step when there are none. - BaseObject::setCustomFields(array) gives store() explicit values instead of $_POST, for code with no form behind it. - The task form copies its subforms into the main form without their hidden fields, so saveDetail() now lists w2p_custom_fields[] to copy. The add/edit forms and handlers need no change. Checked from the CLI with a text, a checkbox and an unpublished field on a company: a store() with no POST keeps all three (the old code set the text and unpublished fields to 0); the form posting the text and not the checkbox unticks it and keeps the unpublished field; setCustomFields() ticks it again without touching the others. Fixes #473. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The year view's key says "Non-working day" (it was "Weekend" until the calendars honoured cal_working_days and holidays), but the string was only in locales/en/events.inc, so every other language showed English. Add it to the events.inc of all 12 other locales, in alphabetical position and with each file's own line endings (CRLF or LF; the files are mixed). German had no "Weekend" entry either. Rather than copy each language's "Weekend" (the meaning the label moved away from), these are translations of "non-working day": cs Nepracovní den nl Niet-werkdag de Arbeitsfreier Tag pl Dzień wolny od pracy es Día no laborable pt Dia não útil fa روز غیرکاری pt_br Dia não útil fr Jour non ouvré ru Нерабочий день it Giorno non lavorativo sv Arbetsfri dag A check by native speakers is still welcome. Each file still parses as the array core.php builds from it. Fixes #454. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
locales/en/lang.php registered English with the charset ISO8859-15. setUserLocale() builds user_lang from it, so setlocale() was asked for en_US.ISO8859-15 first, which many servers don't have, and $locale_char_set briefly said ISO8859-15 too. Everything else in core is UTF-8, and en/locales.php already sets $locale_char_set = 'utf-8'. Also lists the charset in the file's description of the array (it said 4 parts; there are 5). Dutch has the same problem and is left for the language-pack conversion, as the issue says. Fixes #504. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The common.inc check tested a non-empty string, so it was always true and readfile() warned when the user's language had no common.inc (a missing or partial language). Use file_exists(), and fall back to English's common.inc. Fixes #502. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
CAppUI::loadLanguages() kept the list of installed languages in $_SESSION['LANGUAGES'], so a language added to or removed from locales/ didn't appear in (or disappear from) the language pickers until the user logged in again, and a removed language stayed selectable. Cache the list in a static for the request instead; scanning locales/*/ is cheap. The old session entry is dropped when seen. Fixes #503. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
If host_locale or a user's LOCALE preference named a language that isn't installed, setUserLocale() got null from findLanguage(), read $LANGUAGES[null] and set user_locale to null. index.php then included locales//locales.php, so LOCALE_FIRST_DAY was never defined, and the month, year and week views died with "Undefined constant". This gets common once languages are separate downloads. - setUserLocale() falls back to en_US when no installed language matches (and splits the code without assuming it has a country part). - New CAppUI::loadLocale() loads the language's locales.php and locales/core.php, falling back to locales/en when the language's folder is missing. It replaces the seven include pairs in index.php (x4), calendar.php, fileviewer.php and do_preference_aed.php, plus fileviewer.php's lone include of core.php. It skips locales.php when its constants are already defined, which also ends the "already defined" warnings when preferences are saved. Checked on the built-in server with the admin's preference set to de_DE and locales/de renamed: before, the month and week views were fatal and every page warned; now the calendar, week view, Gantt, Help and Projects pages come up in English with no warnings, and renaming the folder back shows German again without logging out (with #503). Saving a French preference switches the UI to French; the calendar feed still works. Part of #495. Fixes #501. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
modules/system/translate_save.php writes locale files but is reached as a=translate_save, not through dosql or a=do_*, so index.php's form-token check (CSRF protection) never ran for it. A page on another site could make a logged-in admin's browser rewrite a translation file. Check the token in the page itself, and accept only a POST. The translation form already carries the token (w2p_add_form_tokens()). Checked on the built-in server as admin: a POST without the token and a GET with one are refused and the file is unchanged; the form's POST with the token still saves. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
When a contact is asked to update their details, the key in the e-mailed link was MD5 of the current time (FMT_DATEISO). updatecontact.php lets whoever holds the key view and edit the contact, and the time a request was made is easy to narrow down, so keys could be guessed by hashing the seconds around it. Use bin2hex(random_bytes(16)), which fits the VARCHAR(32) column, as #436 did for calendar feed tokens. do_updatecontact.php already strips the posted key to [A-Za-z0-9], so hex keys pass through unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The History list's Login/Logouts entries (history_table 'login',
history_item = the user) were checked with checkModuleItem('admin',
'view', $userId). That goes through CUser::getAllowedRecords(), which
returns every user because it feeds the user pickers, so any user,
even one without the Users module, saw when everyone logged in and out.
Every user still sees their own entries; other users' entries now need
view on the Users module. CUser::getAllowedRecords() is unchanged, since
the pickers depend on it.
Checked from the CLI with entries for the admin and a Project worker:
the worker now sees only their own; the admin still sees both.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
…ay() work PEAR Date's subtractSeconds() and addSeconds() build a Date_Span, whose PHP 4 style constructor never runs on PHP 8, so the span is always zero and the date never moves. w2p_Utilities_Date already overrode addSeconds(); subtractSeconds() was still PEAR's, and PEAR's getPrevDay()/getNextDay() return a plain Date with both broken methods. - subtractSeconds($n) is addSeconds(-$n). A negative $n now moves the date forward; testSubtractSecondsNegative expected the old no-op and is updated. - getPrevDay() and getNextDay() return a w2p_Utilities_Date in the same time zone, at the same time. Effects: the events month view now loads events for the days of the previous and next month shown in its grid (for October 2026 it started at Wed 30 Sep instead of Sun 27 Sep), and the task links for a period include tasks starting exactly at its start (the 1-second step back in cleanup_functions.php ran but did nothing). The four testSubtractSeconds* tests that failed before now pass; no other test changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
A calendar feed URL gives read access to its user's calendar, but: - the user page showed every user's feed URL, and the button to regenerate it, to anyone who could view that user; - do_user_token.php checked no permission at all, so since #463 any user with access to the Users module (without edit) could replace another user's token, and it redirected using an undefined $userId, so it always landed on the user list. The feed section and the handler now require the user themselves or edit rights on Users. The handler casts the user id and returns to the user's page. Checked on the built-in server with a Project worker given view on Users: before, they saw the admin's feed URL and could replace it; now they see neither, and their own feed still regenerates. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01K315UgUazvx8qspudiHKjg
The upgrader ran every statement and every migration whatever failed, recorded each migration as applied, and listed the errors at the end. A failure early in a migration therefore carried on into statements that depended on it: on one site 056's projects copy failed and the rename after it left the projects table empty. Now the first statement that fails stops the run. That migration is not recorded, so the database version stays at the last one that completed, and nothing after it runs. The install, upgrade and conversion pages show a report with: - the migration, its position in the run, the statement number and the line it starts on - the MySQL error number and message, and the statement as written in the file (placeholders such as [ADMINPASS] are not filled in) - the database version before the run and now, and which migrations completed and which did not - the server version and sql_mode - what to do next: restore the backup when part of the migration ran, or just run again when none of it did Errors that mean the change is already in place are still skipped, and a duplicate row from INSERT ... VALUES joins them, since older migrations insert the same sysvals again. A duplicate from INSERT ... SELECT stops the run, because there it means rows are missing from a copy. Also: - Before 056 rebuilds it, w2pversion's primary key is code_revision (0 on every row) or, after a dotProject conversion, code_version, so only one version row fit and the recorded version stayed at 1 until 056. Each row now gets the migration number as code_revision, and a row that still clashes is replaced. - dp_to_w2p1 cleaned users.user_birthday, which dotProject 2.0 removed, so every conversion failed there. It now runs only if the column exists. - A failed dotProject conversion no longer writes a web2project config.php, which would have made the next visit upgrade a half-converted database. - Error text on the pages is escaped, and the notes saying "Duplicate entry" and similar errors are probably harmless are gone. The new UpgradeManagerMigrationsTest covers this with a fake connection and needs no database; the splitter test moved there from UpgradeManagerTest. Tested on MariaDB 10.11 with sql_mode empty, STRICT_TRANS_TABLES and STRICT_ALL_TABLES: a fresh install, a 3.4 upgrade and a dotProject-converted upgrade still finish without errors, and the old 056 now stops before the projects copy with the projects table intact. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015C3RYV3iA5pchcff2c2hn6
showDays() and showWeeks() print one row per user in the global
$user_list and size "Total capacity for all users" by it, but
modules/reports/reports/allocateduserhours.php never set it. So the
report showed no user rows and 0.00 allocated hours, the all-users
capacity was 0, and the per-task breakdown below read the empty
$user_names ("Undefined array key" warnings).
Set $user_list to w2PgetUsersHashList(), the users this user may see
(by company and department), keyed by user id with the username and
names those functions use. The breakdown skips users not in that list.
Checked on the built-in server with a 40-hour task in October 2026
assigned to two users (100% and 50%, "Use assigned percentage"):
before, no rows, 0.00 hours and the warnings; now both users are listed
with 26.67 and 13.33 hours, and the daily view's capacity is 352.00
(22 working days x 8 h x 2 users).
Fixes #524.
The bundled PHPMailer 5.1 (lib/) Q-encodes header values in EncodeQ() with preg_replace()'s /e modifier, which PHP 7 removed. The call fails with a warning and returns '', so any subject (or other encoded header) that is mostly ASCII with a few accented characters went out as "Subject: =?utf-8?Q??=". With the "[web2Project] " prefix that is nearly every notification whose project, task or company name has an accent. w2p_Utilities_Mail extends PHPMailer, so it now overrides EncodeQ() with the same rules using preg_replace_callback(). lib/ is untouched. The 'comment' position encodes in one pass: 5.1 ran two, so it re-encoded the = of its own =28. Moving to Composer's PHPMailer 7 (as dev-6.0.0 does) stays the longer-term fix for the other 5.1 problems. New w2p_Utilities_MailTest: subjects with a few accents and with =, ? and _ decode back to the original, and each EncodeQ() position gives the expected encoding. All three fail on the old code. The existing EmailManager failures are unchanged. Fixes #523.
addDays($n) added $n * 86,400 seconds. In a time zone with daylight saving, midnight on the day DST ends plus one day is 23:00 the same day, so a loop stepping from midnight counted that day twice and every later day was shifted by one. Allocated User Hours for November 2026 in America/New_York counted 20 working days instead of 21 (it lost Mon 30 Nov), and the other loops that step with addDays() (calendars, task durations, reports) are exposed the same way twice a year. Whole days now move the calendar date and keep the clock time (done on the wall-clock values in UTC, which has no DST). A fractional part is still added as seconds, so addDays(2.5) and addDays(-2.5) behave as before; the existing addDays tests pass unchanged. Checked: from 2026-11-01 00:00 in America/New_York, three addDays(1) steps give 2, 3 and 4 Nov at 00:00 (before: 23:00 on 1, 2 and 3 Nov), and the November report's capacity for two users is 336 (21 x 8 x 2) instead of 320.
The weekly view (showWeeks()/userUsageWeeks()) had three problems: - Its capacity totals were divided by 2 (since the original 2008 code), while each user's percentage used the full capacity. With two users, "Total capacity" was one user's and "Percentage used" came out as the sum of the users' percentages, not their share of the total. - userUsageWeeks() stepped the report's own $start_date forward ($actual_date = $start_date) and called workingDaysInSpan() on $end_date, which moves it. So each task after the first started from where the previous one stopped, and showWeeks() saw moved dates: a second task later in the period was left out entirely, and the number of weeks came out short. - Weeks were stepped with addSeconds(168 * 3600), which drifts an hour across a daylight saving change; addDays(7) now keeps the time. Checked on the built-in server, November 2026, two tasks (40 h shared by two users, and 20 h for one user three weeks later): the weekly view showed 40.00 h and 400.00 h capacity, without the second task; it now shows 60.00 h like the daily view, and 480.00 h capacity for the 6 weeks the period touches (6 x 5 days x 8 h x 2 users), with each user's percentage matching that. October gives 400.00 h for its 5 weeks.
The "Awaiting Update" feature e-mailed a contact a link with a key so they could edit their own record through updatecontact.php, without logging in. It had stopped working at both ends: - Nothing sent a request: __extract_from_contact_controller(), which made the key and sent the e-mail, has had no caller since fd05455 (2014), so ticking "Awaiting Update" did nothing. - updatecontact.php sent anonymous visitors to the login page, even with a valid key, because CContact::load() checks permissions. Removed: - updatecontact.php and do_updatecontact.php, and their entries in the .htaccess list of files reachable directly; - CContact::getUpdateKey(), clearUpdateKey(), notify(), updateNotify(), getContactByUpdatekey(), clearOldUpdatekeys() and the hook_cron() call to it, and the contact_updatekey/contact_updateasked properties; - __extract_from_contact_controller() and EmailManager::getContactUpdateNotify(); - the "Contact Update Info" block (Awaiting Update, Update Requested) and its updateVerify() script on the contact form, "Waiting Update" on the contact page, the waiting/too long/done icons on the contact cards, and FormHelper's contacts-only 'updateask' field type; - the tests for the removed methods and e-mail. Migration 074 drops contacts.contact_updatekey (and its index) and contact_updateasked. contact_lastupdate stays: every save stamps it, the contact list filters on it, and "Last Updated" still shows. Add-ons that call the removed CContact methods need updating; nothing else in core used them. Checked: upgrading a 073 database applies 074 and drops the columns; applying 074 again reports no errors. PHPUnit: only the removed tests are gone. The contact list, view and add/edit pages load for an admin and a Project worker without warnings, a contact still saves, and updatecontact.php and do_updatecontact.php return 404.
"Contact Update Info", "Last Update Requested" and "Waiting Update"
belonged to the contact self-update feature removed in the previous
commit, and nothing uses them now ("Last Update Requested" had no
user even before). Removed from the contacts.inc of the 12 locales that
had them (German never did), keeping each file's line endings. Every
file still parses.
Upgrading a 2.x site on MySQL 8 stopped at 035 ("Invalid default value
for 'task_log_created'"). The 1.x and 2.x schemas give date columns a
'0000-00-00 00:00:00' default, and under MySQL 8's default sql_mode
(NO_ZERO_DATE, NO_ZERO_IN_DATE, STRICT_TRANS_TABLES) any ALTER TABLE on
such a table fails, even one that changes another column. Migrations
042, 045, 046 and 052 hit the same, and the steps that depended on
them failed after ("Unknown column 'task_path_enumeration'").
Migrations before 056 were written for MySQL 5's default mode. They now
run without the strict, zero-date and division-by-zero flags for that
session. 056, which cleans the zero dates and rebuilds the tables, and
everything after it run in the server's own mode, which is restored
when the run ends or stops. 3.4 sites start at 056, so their upgrade is
unchanged.
Checked on MySQL 8.0.46 with its default sql_mode, running
upgradeSystem() from the CLI on a database built from the 2.3.0
release's migrations 001-033 with zero-date data (as in #532): before,
it stopped at 035; now it runs to 058 (059 and 046 data cases follow
in the next commits). A fresh install gives the same schema and data
as before. New tests cover the mode before and after 056, and its
restoration after a failure.
059 makes files.file_date (renamed file_datetime) NOT NULL. A file with
a zero date, which a 1.x/2.x site can have, or with NULL made that
ALTER fail on MySQL 8 ("Incorrect datetime value: '0000-00-00
00:00:00' for column 'file_datetime'"), and 056 never cleans the files
table. Such files now get the upgrade time first, as 056 does for tasks
without a created date.
Checked on MySQL 8.0.46 with its default sql_mode: the 2.3.0 database
from the previous commit, with a zero-dated file, stopped at 059; it
now upgrades to 074 with no errors, keeping every row.
046 turns user_preferences.pref_user from VARCHAR into INT. Older
versions could store a default preference with pref_user '' as well as
'0' (2.x read both as user 0), and the conversion turned such a pair
into a duplicate primary key ("Duplicate entry '0-TASKSEXPANDED' for
key 'user_preferences.PRIMARY'"), stopping the upgrade in any sql_mode.
Before the ALTER, a '' row whose preference also exists for '0' is
deleted, keeping the '0' row: that is what the preferences page saves
and shows. A '' row on its own becomes 0 as before. Once the column is
an INT the two values compare equal, and the extra condition makes the
DELETE do nothing if 046 runs again.
Checked on MySQL 8.0.46 with its default sql_mode, on the 2.3.0
database from the previous commits plus '' rows for TASKSEXPANDED,
SHDATEFORMAT (both also set for '0') and one preference only set for
'': before, 046 stopped on the duplicate; now the upgrade reaches 074,
the '0' values are kept and the lone '' row is user 0's. Running 046
again on the upgraded database deletes nothing.
With e8b84b5, the previous commit, and 74bcbfc, b3e6b09 and
55b6431, this resolves the four problems in #532.
Fixes #532.
PHP 8 no longer treats a method named after its class as the constructor, so HTML_BBCodeParser's options (open_esc/close_esc) and filters were never set up. Forum messages showed raw BBCode tags and logged "Undefined array key" and preg_match compile warnings. Rename the constructor to __construct(). Callers (forums view/post via new HTML_BBCodeParser() + qparse()) and the filter subclasses need no changes. Verified on PHP 8.3: tags render and no warnings are logged. Fixes #531 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015C3RYQpptWkpV5ePskRqdG
…eriod() The method has been declared static, so the docblock warning that $this is not available adds nothing.
004 made the primary key column INT NULL AUTO_INCREMENT. A primary key
column can't be NULL: MySQL 5 and MariaDB quietly made it NOT NULL, but
MySQL 8 refuses the statement ("All parts of a PRIMARY KEY must be NOT
NULL"), so every fresh install on MySQL 8, the version the README asks
for, stopped at 004. It now says NOT NULL, which is the column existing
installs already have.
Checked with the installer's upgrader on MySQL 8.0.46 in its default
strict mode: a fresh install into a utf8 database stopped at 004; it now
completes to 074 with no errors.
002 created user_feeds without a character set, so it took the
database's default. On MySQL 8 that is utf8mb4, and the unique key on
the 255-character feed_token needs 1,020 bytes, over MyISAM's 1,000-byte
limit ("Specified key was too long"), so a fresh install into a database
created with MySQL 8's defaults stopped at 002. The table is now created
as utf8, which is what 006 converts it to anyway; existing installs are
unaffected.
Checked with the installer's upgrader on MySQL 8.0.46 in its default
strict mode: with the 004 fix alone, a fresh install into a utf8mb4
database stopped at 002; with this, it completes to 074 with no errors,
as a utf8 database does. Every table ends up utf8 either way (later
migrations convert them), so there is no utf8/utf8mb4 collation mix.
canEdit() and canDelete() trusted the task_log_creator and task_log_record_creator bound from the request, so a user who could only view tasks could edit or delete anyone's task log by posting their own id in those fields (GHSA-xcpx-p68j-gm7w). - Check the creator, recorder and task stored in the database. An id with no row is refused. - The edit-permission fallback checked the log id as a task id; check the log's task instead. - An edit keeps the stored creator and recorder. A new log is recorded by the current user, and is for another user only when the task allows that and the user is assigned to it. - Moving a log to another task needs the right to add a log there. - do_updatetask.php emails the stored subject, not the posted one. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015C3RYVF8FZpbKHSoSnhJwg
It stopped working
…modes
dotProject's tables come from MySQL 5 and hold zero dates, and the
conversion files (dp20_to_201 through dp_to_w2p2) ran in the server's
mode. Under MySQL 8's default sql_mode any ALTER on such a table fails,
so converting a dotProject 2.1.8 database stopped in dp_to_w2p2
("Incorrect date value: '0000-00-00' for column 'contact_birthday'").
The conversion now runs in the mode migrations before 056 use, and the
server's mode is put back before the upgrade that follows it, or when a
conversion step fails.
Checked on MySQL 8.0.46 with its default sql_mode, converting a
dotProject 2.1.8 database with zero-date data through
convertDotProject(): before, it stopped in dp_to_w2p2; now the
conversion completes and the upgrade runs until 006, which the next
commit covers. New tests cover the mode during and after the conversion.
006 converts every table to utf8, including the phpGACL sequence tables
and the History, Links and Resources tables. A fresh install has them
from 001, but a converted dotProject database has them only if
something created them: ADOdb makes the sequence tables the first time
an id is needed, and those modules create their tables when they are
installed, already in utf8. Converting a dotProject 2.1.8 database
without them stopped at 006 ("Table 'gacl_acl_seq' doesn't exist").
Those 14 tables are now converted only if they exist, at the end of 006
(none of 006's other statements depend on them).
Checked on MySQL 8.0.46 with its default sql_mode: the converted
dotProject 2.1.8 database from the previous commit now gets past 006
and stops at 012, which the next commit covers. A fresh install (utf8
and utf8mb4 databases) and upgrades from 2.0, 3.0 and 3.4 give the same
schema and data as before.
012 rebuilds the indexes of every table, links among them. A converted
dotProject database has links only if the Links module was installed
there, and otherwise gets the table when the module is installed, with
its own indexes. Converting a dotProject 2.1.8 database without it
stopped at 012 ("Table 'links' doesn't exist").
012's eight links statements now run only if the table exists, in their
original places, each on its own as before (a missing index still fails
harmlessly).
Checked on MySQL 8.0.46 with its default sql_mode: the converted
dotProject 2.1.8 database now gets through 059 and stops at 060, which
the next commit covers. A fresh install (utf8 and utf8mb4 databases)
and upgrades from 2.0, 3.0 and 3.4 give the same schema and data as
before.
060 renames link_date to link_datetime. A converted dotProject database
has links only if the Links module was installed there; otherwise the
module creates the table, already with link_datetime, when it is
installed. Converting a dotProject 2.1.8 database without it stopped at
060 ("Table 'links' doesn't exist").
The rename now runs only if links exists.
Checked on MySQL 8.0.46 with its default sql_mode: the converted
dotProject 2.1.8 database now gets through 071 and stops at 072, which
the next commit covers. A fresh install (utf8 and utf8mb4 databases)
and upgrades from 2.0, 3.0 and 3.4 give the same schema and data as
before.
072 fills history_project for link entries from the links table. A
converted dotProject database has links only if the Links module was
installed there, and without the table there is no link history to
fill. Converting a dotProject 2.1.8 database without it stopped at 072
("Table 'links' doesn't exist").
That UPDATE now runs only if links exists.
Checked on MySQL 8.0.46 with its default sql_mode: the converted
dotProject 2.1.8 database now converts and upgrades to the last
migration with no errors. On a 3.4 database with a link and a history
entry for it, 072 still sets that entry's project. A fresh install
(utf8 and utf8mb4 databases) and upgrades from 2.0, 3.0 and 3.4 give
the same schema and data as before.
A fresh install gets ten columns from 001 that dotProject never had and that neither the conversion nor any later migration adds. A converted site was left without them, and the one the code uses broke the event queue: adding a task reminder or any other queued event failed with "Unknown column 'queue_module_type'". dp_to_w2p2 now adds them with 001's definitions: companies.company_private, custom_fields_struct.field_tab, event_queue.queue_module_type, events.event_url, event_task and event_location, forum_watch.watch_id (as its primary key, which dotProject's table lacks), task_log.task_log_company, tasks.task_dep_reset_dates and users.user_empireint_special. Checked on MySQL 8.0.46 with its default sql_mode, converting dotProject 2.1.8 databases (MyISAM and InnoDB) through convertDotProject(): they convert and upgrade with no errors, have every column of a fresh install, and EventQueue's insert now works where before it failed on queue_module_type. A fresh install (utf8 and utf8mb4 databases) and upgrades from 2.0, 3.0 and 3.4 give the same schema and data as before.
These migrations replaced a zero start or end date on tasks (022, 023, 025, 031) and projects (031) with the time of the upgrade. So upgrading a 2.x site or converting a dotProject database gave every undated task and project a start and end date of that day, and they showed up on Gantt charts and as overdue. Sites upgrading from 3.0 or 3.4 skip these migrations: 056 and 070 make the same zero dates NULL, which the application shows as no date. These migrations now make them NULL too. Each column already allows NULL at that point, and the zero dates no longer need replacing for the migrations after them to run, since migrations before 056 run without MySQL 8's strict date modes. Checked on MySQL 8.0.46 with its default sql_mode: upgrading from 2.0 and converting a dotProject 2.1.8 database, the task and project with zero dates now have no start or end date (before, both had the upgrade time), and dated tasks keep their dates. A fresh install (utf8 and utf8mb4 databases) and upgrades from 3.0 and 3.4 give the same schema and data as before.
dp_to_w2p1 changes sessions.session_user, but dotProject only added
that column partway through 2.0.x, in its own upgrade script: 2.0.4
has it, 2.0.1 and 2.0.2 do not. Converting a dotProject 2.0.1 database
stopped there ("Unknown column 'session_user' in 'sessions'"), and 2.0.2
and 2.0.3, which take the conversion's default path, would stop the
same way.
dp_to_w2p1 now adds the column first. Where it already exists the ADD
fails as a duplicate column, which the upgrader skips, as in other
migrations. The sessions table is emptied just before, so there is
nothing to fill.
Checked on MySQL 8.0.46 with its default sql_mode, through
convertDotProject(): a dotProject 2.0.1 database (from the stable_2
branch, 2005) stopped in dp_to_w2p1; it now converts and upgrades with
no errors, as do 2.0.4 and 2.1.8 (MyISAM and InnoDB), each with every
column of a fresh install. A fresh install and upgrades from 2.0, 3.0
and 3.4 give the same schema and data as before.
The duplicate check stripped every character except letters, digits, @, . and +, so [email protected] and [email protected] collided, and an existing address containing a hyphen or underscore was never matched. Validate the trimmed address with w2p_check_email() instead, store that same value, and quote it in the lookup the way CContact does. An invalid address now gets its own message on the signup form. Claude-Session: https://claude.ai/code/session_015C3RYSEP1dWPLruZLWThhx
The psr-0 autoload pointed Web2project at src/, which doesn't exist; the classes load through web2project_autoload(). The lock file's content hash is unaffected. Claude-Session: https://claude.ai/code/session_015C3RYSEP1dWPLruZLWThhx
Carbon 2 is the old line; 3.0 has been out since early 2024. The only Carbon code outside vendor/ is w2p_Utilities_Date::setTZ(), and every CarbonTimeZone method it calls (create(), toOffsetName(), toRegionName(), getAbbreviatedName()) keeps the same signature in 3.x. The lock moves Carbon 2.72.6 -> 3.15.1 and symfony/translation 6.4 -> 7.4, and adds symfony/clock, psr/clock and the php83 and time polyfills. Every package still runs on PHP 8.3, the project minimum. Run composer install after pulling. Claude-Session: https://claude.ai/code/session_015C3RYSEP1dWPLruZLWThhx
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
5.0.0 RC 3 Release Notes
Title: 5.0.0 Release Candidate 3
Base:
master· Head:dev-5.0.0(5611b01)v5.0.0 rc3 Release Notes
Release Date: 07 November 2026 (rc3; merges dev-5.0.0 into master, covering everything since #521)
Download: the release will be tagged on GitHub once this merges.
Reporting problems: please open an issue at https://github.com/web2project/web2project/issues.
Fixes/Bugs Closed
Security
hash_equals()(Fixes Legacy MD5 password check uses a loose comparison #474) (18fe643)dosqlanddo_*requests for modules the user can't access (Fixes Any logged-in user can run any module'sdosqlhandler; index.php has no module access check #463) (2840032), and refuses unknown or malformed handlers instead of failing (e282c8c)CAppUI::isActiveModule()loads the module list once per request instead of interpolating the name into SQL (FixesCAppUI::isActiveModule()interpolates the module name into SQL and runs a query on every call #457) (640481c)project_idin the permission filter (d295afa)Authentication and sessions
session_useris set on insert, and the cron only removes stale anonymous sessions (Fixes Session cleanup cron can delete a session that has just logged in #445) (5591b79)CUser::getIdByContactId()reads the user id from the list's key (FixesCUser::getIdByContactId()looks up the result by the wrong key #441) (bc8eb65)jane_doe@andjanedoe@no longer collide (c57f2f8)Upgrades and migrations
sessions.session_userdotProject lacks (89ebc30, 6c678fb); 006, 012, 060 and 072 skip optional tables that don't exist (e91fb25, ea2e619, e09e2ec, bc182d6); 022/023/025/031 leave missing dates empty (567d178)history_project; 073 fillstask_log_project; 074 drops the contact update-request columnsDates, calendars and reports
w2p_Utilities_Date::format()parses%-codes and copies other text (Fixesw2p_Utilities_Date::format()ignores%: literal letters are replaced and most codes are unsupported #519) (5d56a2a)getBeginWeek()/getEndWeek()return the ISO week of the date (FixesgetBeginWeek()/getEndWeek()always see Sunday:Format('%w')returns "w" #520) (ad5fed9)subtractSeconds(),getPrevDay()andgetNextDay()work (e4af64a);addDays()moves by calendar days across DST (ddfab40)isWorkingDay()ignores the Holiday add-on when its files are missing (Fixes Calendars and task scheduling fatal if the Holiday add-on is marked active but its files are missing #452) (4ef0e61)getRecurrentEventforPeriod()is static, so recurring events no longer crash the day view and Events tabs (Fixes Fatal error on PHP 8: CEvent::getRecurrentEventforPeriod() called statically #530) (4b4ff99, 0ad29d2)Date_Calc::weekOfYear()call (6a762862)History, tasks, projects and custom fields
task_log_projectand follow their task between projects (412a7f8); deleting a task's last log sets progress to 0 (5a3d4f3); no undefined$extraread (5765a0c)Mail and forums
preg_replace()'s removed/emodifier, so accented subjects aren't blank (Fixes Mail: subjects with a few accented characters are sent blank (lib/PHPMailer 5.1) #523) (5aa85b5); read receipts and the Organization header fixed (7490775)Language packs (Closes #495)
Misc Changes/Improvements
w2p_Exception_FileSystemtow2p_Exceptions_FileSystem(Fixes w2p_Exception_FileSystem cannot be autoloaded (class name says Exception, folder says Exceptions) #467) (f3ce86b); the autoloader skips names with no file (Fixes web2project_autoload() includes without checking the file exists #468) (0c8ac5e)readFiles(),checkFileName()andloadCalendarJS()until v6.0 (FixesCAppUI::readFiles(),checkFileName()andloadCalendarJS()say they were removed in v4.0/v5.0 but still exist #465) (d962bda)w2PformSafe()on objects (b1d60d8), ResourcestypeSelect()(c62e107),Query::loadList()on failure (ec6b847), unchecked file reads (7ac639b),preg_split()failure (b72563d), fileviewer.php (ff63623, 26768f4), arguments functions never accept (7940467)85 commits, 130 files changed, 3,211 insertions(+), 1,143 deletions(-). One change under lib/ (the HTML_BBCodeParser constructor, #531); none under vendor/.
Open/Known Issues
__noncetoken, the Any logged-in user can run any module'sdosqlhandler; index.php has no module access check #463 module check or the Saving an object outside its edit form resets its custom fields to 0 #473 custom-field rule (moved from Add-on upgrade guide doesn't mention the__nonceform token now required on dosql, AJAX anddo_*requests #464 to Add-on upgrade guide doesn't mention the__nonceform token now required on dosql, AJAX anddo_*requests manual#4 and Add-on upgrade guide doesn't mention the__nonceform token now required on dosql, AJAX anddo_*requests web2project.github.io#9)bind()encodes on save)