Closed (fixed)
Project:
APNs PHP
Version:
1.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2026 at 06:57 UTC
Updated:
27 Jun 2026 at 11:20 UTC
Jump to comment: Most recent
Before we can release a stable version, we need a test suite.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ptmkenny commentedComment #4
ptmkenny commentedChanges in this branch:
- Fixes the production setting key from is_production to production.
- Adds configuration fields for certificate secret and production/sandbox mode.
- Saves the certificate secret from the correct field.
- Hides the saved secret using an empty password field.
- Preserves the existing secret when the password field is submitted blank.
- Canonicalizes certificate paths and rejects:
- public:// files
- Absolute paths inside the Drupal webroot
- Relative paths inside the Drupal webroot
- Symlinks targeting files inside the webroot
- Adds tests covering:
- Configuration form fields and submission
- Secret non-disclosure and blank-value preservation
- Certificate path existence, readability, and webroot security
- Missing service credentials
- Notification payloads, single/multiple recipients, badges, silent mode, responses, logging, and basic token
validation
Comment #6
ptmkenny commented