nextcloud / nextcloud/terms_of_service

Use hooks instead of stack trace inspection

Open
#498 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop technical debt
Dominant language
JavaScript
Stars
40
Forks
23
Avg merge
3d 3h
Merged PRs (30d)
11

Description

Instead of inspecting the stack trace in https://github.com/nextcloud/terms_of_service/blob/36f2a483eb696d5f14d8bac8b3feb2f3b186a6ff/lib/Filesystem/Helper.php#L66, introduce (cancellable?) hooks in relevant classes in server.

The hooks could be called something like "beforeCopySkeleton" and "afterCopySkeleton"

  • LoginController
  • ClientFlowLoginController
  • ClientFlowLoginV2Controller
  • RegisterController

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/Filesystem/Helper.php line 66, then inspect LoginController, ClientFlowLoginController, ClientFlowLoginV2Controller, and RegisterController. Replace the stack-trace inspection with the agreed cancellable hooks, and consider the work done when all four controllers are covered by the hook flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.