Putting in an invalid URI makes the settings page unusable in Moodle 4.5

Open
#703 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
aws, azure, php
Domain
backend

Research direction

Start by reproducing the issue in Moodle 4.5: enter an invalid custom endpoint in the ObjectFS plugin settings, then reopen the settings page. Trace how the endpoint is validated and how the settings page handles the resulting exception; the issue does not name relevant files or tests. Done when the settings page remains usable after an invalid URI is entered and the user can recover their settings.

Written by the indexing model from the issue text.

Description

Reproduce by:

Entering an invalid URI in the plugin settings area, click plugin settings again. Only thing shown now is "Exception - Custom endpoint some.fqdn/<something> was not a valid URI

More information about this error

Next step for me, trying to figure out where this plugin stores it's settings so I can reset it... doesn't seem to be in the database.

Dominant language
PHP
Stars
102
Forks
85
Avg merge
4d 21h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from catalyst/moodle-tool_objectfs

All issues in catalyst/moodle-tool_objectfs

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.