aboutsummaryrefslogtreecommitdiffstats
path: root/tests/slskd.Tests.Unit
AgeCommit message (Collapse)AuthorLines
2026-05-30extract StripPathRootJP Dillingham-0/+150
2026-05-30remove deprecated common extensionsJP Dillingham-3/+3
2026-05-28tests, strategy enumJP Dillingham-0/+610
2026-05-28testsJP Dillingham-1/+39
2026-05-27remove deprecated extension methodJP Dillingham-144/+0
2026-05-27add tests for FileSafety methodsJP Dillingham-0/+343
2026-05-23make CombineSafely() even saferJP Dillingham-0/+95
2026-05-22adjust abs/rel tests for attributesJP Dillingham-50/+95
2026-05-22fix copypastaJP Dillingham-3/+3
2026-05-22adjust FileSafety testsJP Dillingham-697/+416
2026-05-18fix path detection (again)JP Dillingham-551/+635
2026-05-17leave some notesJP Dillingham-0/+3
2026-05-17add test for greedy bracket changeJP Dillingham-0/+37
2026-05-17mess with tests and validationJP Dillingham-309/+180
2026-05-16fix testJP Dillingham-0/+7
2026-05-16add StringAttribute to cover all string related validationJP Dillingham-254/+517
2026-05-16tweak validation on batch requestJP Dillingham-7/+40
2026-05-16add NonTraversingPathAttributeJP Dillingham-0/+94
2026-05-15fix testsJP Dillingham-5/+5
2026-05-15add tests for GuidAttributeJP Dillingham-0/+74
2026-05-14Merge remote-tracking branch 'origin/master' into batchesJP Dillingham-1/+1
2026-05-13add validator for disallowed charactersJP Dillingham-0/+254
2026-05-13add tests for extensionsJP Dillingham-18/+269
2026-05-13add validators for absolute and relative pathsJP Dillingham-0/+360
2026-05-13add FileSafetyJP Dillingham-0/+545
2026-05-13write our own logic for path relative/absoluteJP Dillingham-29/+155
2026-05-12add DisallowedCharacters attribute, ensure no slashes in instance/agent nameJP Dillingham-0/+254
2026-05-10more tests for ToLocalRelativeFilenameJP Dillingham-17/+124
2026-05-10GetInvalidPathChars() is invalid garbageJP Dillingham-0/+144
2026-05-10add file safety functionsJP Dillingham-0/+417
2026-05-10ensure traversal segments failJP Dillingham-3/+19
2026-05-09strip path traversal segments from configured pathsJP Dillingham-0/+362
2026-05-09require at least 1 fileJP Dillingham-9/+52
2026-05-09add validation and tests for batch request DTOJP Dillingham-0/+212
2026-04-23Merge remote-tracking branch 'origin/master' into blacklist-regexJP Dillingham-0/+523
2026-04-23add tests for blacklist optionsJP Dillingham-0/+130
2026-04-22add functional tests backJP Dillingham-0/+56
2026-04-22mock cacheJP Dillingham-44/+13
2026-04-22cache testsJP Dillingham-3/+78
2026-04-22add tests for IsBlacklisted and cacheJP Dillingham-0/+193
2026-04-22inject ISystemClockJP Dillingham-1/+4
2026-04-19add tests for DiffWithJP Dillingham-0/+523
2026-04-05update projects to .NET 10JP Dillingham-2/+1
2026-03-29add FORKING.mdJP Dillingham-9/+9
2026-03-15fix stuff broken by options refactorJP Dillingham-131/+155
2026-03-15add additional tests for exponential compJP Dillingham-9/+46
2026-02-28ensure execute bits are set on directory modeJP Dillingham-0/+75
2026-02-15add testsJP Dillingham-0/+292
2026-01-14Fix UrlEncodingModelBinder to account for PathBaseAndy Kelk-0/+173
When the application runs with a base path (e.g., /slskd via UsePathBase), the UrlEncodingModelBinder was incorrectly calculating the URL segment index. It was using the route template (which doesn't include the base path) to determine the index, but applying it to the raw URL (which does include the base path), causing it to extract the wrong segment. This fix strips the PathBase from the absolute path before splitting it into segments, ensuring the correct parameter value is extracted regardless of whether a base path is configured. Fixes regression introduced in PR #1596 (commits 8849d78c and e7e0cdaf) where [UrlEncoded] attribute was added to username parameters in v0.24.2. Also adds comprehensive unit tests to verify the fix works correctly with and without a base path, including edge cases like query strings and special characters in usernames.
2025-04-07leave some notesJP Dillingham-4/+0