Skip to content

Add unit tests / fix issues that spun up - #11

Merged
QuickWrite merged 15 commits into
mainfrom
5-add-unit-tests
Sep 29, 2026
Merged

QuickWrite merged 15 commits into
mainfrom
5-add-unit-tests

Conversation

@QuickWrite

Copy link
Copy Markdown
Owner

As the application should be stable, unit tests are sensible.

Closes #5

When the key of the GET oder POST does not exist, an error gets printed
as this undefined value gets used by the method when using get or post.
However this is something that should explicitly NOT happen as the
wrapper is designed to prevent that.

As such a new test is being added and the bug is fixed.
@QuickWrite QuickWrite self-assigned this Sep 27, 2026
@QuickWrite QuickWrite added bug Something isn't working enhancement New feature or request labels Sep 27, 2026
@QuickWrite QuickWrite linked an issue Sep 27, 2026 that may be closed by this pull request
@QuickWrite
QuickWrite marked this pull request as draft September 27, 2026 15:57
Fix: Setup no longer trims passwords so credentials match exactly
Fix: ShareController blocks direct dotfile access when hidden and
refuses shares left outside the current browse root
Fix: Logout regenerates the PHP session ID after logout
Fix: Some outside files could still be seen by the user even though they
cannot be accessed.
The main issue with the configuration system was that errors were not
really that visible. Now the configuration errors are resulting in an
exception.

Also tests were added to test if these things work correctly.
As the config system is now different the test does not work anymore.
Comment thread composer.lock

@QuickWrite QuickWrite Sep 29, 2026 •

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just the lock file by itself is adding a lot of lines...

If the user manages to get a file that has a \r\n inside of it (or
something like that) the header would leak and a malicious header could
be inserted.
As such this is now checked (normally this should NEVER happen) as a
sanity check inside of the Response object.
@QuickWrite
QuickWrite marked this pull request as ready for review September 29, 2026 23:01
@QuickWrite
QuickWrite merged commit 2a9ed49 into main Sep 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests

1 participant