Characterize cancellation notification and sequential-signing consistency

Đang mở
#9,084 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend, testing

Hướng nghiên cứu

Start with tests/integration/features/sign/cancel.feature and sequential_signing.feature; inspect how the existing PHPUnit integration environment persists signing requests and how the Behat scenarios observe notifications. Reproduce the controlled removal failure and the same-order signer flow described in the issue, then run the relevant integration tests. Done means the tests confirm no cancellation notification or false success after failed removal, and that C is activated and notified once only after A signs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

backend php

Goal

Verify that cancellation and sequential-signing notifications correspond to successful persisted state changes.

Test approach

Reuse tests/integration/features/sign/cancel.feature and sequential_signing.feature.

Persistence failure

Using PHPUnit integration with the existing Nextcloud test environment:

  1. Persist an active unsigned signing request.
  2. Introduce one controlled failure at the persistence boundary for its removal.
  3. Execute the cancellation operation.
  4. Reload the persisted state and observe cancellation events.

Expected:

  • The signer remains persisted.
  • No cancellation notification is emitted for an unsuccessful removal.
  • The operation does not silently report success.
  • Unrelated state is unchanged.

Use real persistence wherever possible and the minimum substitution necessary to reproduce the failure.

Sequential flow

Using Behat:

  1. Create signers A and B at the same first signing order, with C at the next order.
  2. Before anyone signs, remove pending signer B.
  3. Verify that A remains active and C is not prematurely activated or notified.
  4. Complete A's signature.
  5. Verify that C becomes eligible and receives the expected activation notification once.

This must not depend on modifying signer-removal permissions after a document becomes partially signed.

Boundaries

No generic failure-injection framework, broad notification refactor or new delivery mechanism.

Result and handoff

A passing test may be merged normally.

For a confirmed failure, preserve the test commit and sanitized execution evidence without merging a failing test. Request maintainer review to determine the smallest appropriate fix.

If the required correction extends beyond this investigation, establish a traceable follow-up and carry the same regression test into the corrective work.

Ngôn ngữ chính
PHP
Star
844
Fork
176
Merge trung bình
14 giờ 3 phút
Pull request đã merge (30 ngày)
344

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của LibreSign/libresign

Tất cả issue của LibreSign/libresign

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.