nextcloud/tests/lib
nfebe 58991b1b19 fix(sharing): Allow public share access for everyone
When a logged-in user accesses a public share link in the same browser,
the system was incorrectly checking if that user's groups were excluded
from creating link shares. This caused share not found errors for users
in excluded groups, even though public shares should be accessible to anyone
with the link.

The group exclusion setting (`shareapi_allow_links_exclude_groups`) is
intended to restrict share creation, not share access. Public shares
are meant to be anonymous and accessible regardless of the viewer identity
or group membership.

We now check the exclusion for the share creator and not the viewer.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-12-03 19:53:17 +01:00
..
Accounts feat: add bluesky to accounts, show the same in profile edit and visibility option, in view profile and also in sharing tab 2025-08-08 08:06:45 +00:00
Activity feat(activity): add bulk activity option 2025-08-14 11:31:47 +02:00
App fix(appstore): Make appstore timeout configurable 2025-09-30 15:18:59 +00:00
AppFramework feat(rate-limit): Allow overwriting the rate limit 2025-11-12 10:55:06 +01:00
Archive chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Authentication feat(login): Add rememberme checkbox 2025-11-17 13:03:56 +01:00
Avatar chore(rector): Apply current rector config 2025-08-26 16:27:26 +02:00
BackgroundJob refactor(querybuilder): Port away from qb::execute() in tests/ 2025-09-02 11:55:58 +02:00
Cache Revert "perf(base): Stop setting up the FS for every basic auth request" 2025-08-28 17:11:31 +02:00
Calendar fix: iMip reply from outlook.com does not contain organizer property 2025-10-14 19:29:19 +00:00
Collaboration fix: Fix user collaborators returned when searching for mail collaborators 2025-11-12 13:22:25 +01:00
Command fix(jobs): Limit command jobs to known cases 2025-11-05 11:05:36 +01:00
Comments fix(comments): Fix missing return type on new method 2025-08-28 08:58:52 +02:00
Config fix(userconfig): using api bit functions 2025-09-17 18:07:01 +00:00
Contacts/ContactsMenu chore: run rector 2025-07-01 22:45:52 +02:00
DB feat(db): add SSL/TLS support for PostgreSQL 2025-09-22 14:55:29 +02:00
Diagnostics chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
DirectEditing chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Encryption fix(tests): Fix type issues and other problems with encryption tests 2025-09-11 21:18:37 +02:00
Federation refactor: remove duplicated types and add return types 2025-07-23 15:59:26 +02:00
Files fix: make failed availability check apply in the same request 2025-11-12 17:45:55 +00:00
FilesMetadata test: add some minimal testing for metadata storage 2024-11-07 16:27:16 +01:00
GlobalScale chore: run rector 2025-07-01 22:45:52 +02:00
Group chore: run rector 2025-07-01 22:45:52 +02:00
Hooks chore: run rector 2025-07-01 22:45:52 +02:00
Http feat(CertificateManager): Add option to specify the default certificates bundle path 2025-12-01 11:55:11 +01:00
IntegrityCheck test: Adjust the hashes and signatures 2025-08-25 13:19:36 +02:00
L10N fix(l10n): do not consider user language when getting the generic one 2025-11-25 15:43:32 +00:00
Lock refactor(querybuilder): Port away from qb::execute() in tests/ 2025-09-02 11:55:58 +02:00
Lockdown chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Log chore: run rector 2025-07-01 22:45:52 +02:00
Mail feat(ocp): add email address validator 2025-08-14 18:34:36 +02:00
Memcache refactor(Memcache\Factory): move prefix generation to the factory class 2025-08-18 13:24:18 +02:00
Migration chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Net chore: run rector 2025-07-01 22:45:52 +02:00
Notification chore: run rector 2025-07-01 22:45:52 +02:00
OCS chore: run rector 2025-07-01 22:45:52 +02:00
Preview chore(Preview): Remove avconv support 2025-08-27 20:51:08 +02:00
Profile/Actions chore: run rector 2025-07-01 22:45:52 +02:00
Remote chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Repair refactor(querybuilder): Port away from qb::execute() in lib/ 2025-09-02 11:55:56 +02:00
RichObjectStrings chore: run rector 2025-07-01 22:45:52 +02:00
Route chore: run rector on tests 2025-06-12 18:31:58 +02:00
Search test(SearchComposerTest): add unit test for getProviders with mixed order values 2025-08-11 09:42:56 +02:00
Security Merge pull request #56766 from nextcloud/backport/52749/stable32 2025-12-01 14:54:10 +01:00
Session chore: run rector 2025-07-01 22:45:52 +02:00
Settings chore: run rector 2025-07-01 22:45:52 +02:00
SetupCheck chore: run rector 2025-07-01 22:45:52 +02:00
Share chore: run rector 2025-07-01 22:45:52 +02:00
Share20 fix(sharing): Allow public share access for everyone 2025-12-03 19:53:17 +01:00
Support chore: Fix CrashReport\Registry tests 2025-07-08 13:32:14 +02:00
SystemTag feat(SystemTag): Add typed events for tag mapper events 2025-09-04 09:21:13 +00:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +02:00
TaskProcessing fix(TaskProcessing): Cache task types by 2025-09-18 07:23:55 +00:00
Template chore(tests): Use valid application names for tests 2025-08-18 17:09:40 +02:00
TextProcessing chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Traits fix(tests): Fix type issues and other problems with encryption tests 2025-09-11 21:18:37 +02:00
Updater chore: run rector 2025-07-01 22:45:52 +02:00
User chore: run rector 2025-07-01 22:45:52 +02:00
Util chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
AllConfigTest.php chore: run rector 2025-07-01 22:45:52 +02:00
AppConfigIntegrationTest.php refactor(Memcache\Factory): move prefix generation to the factory class 2025-08-18 13:24:18 +02:00
AppConfigTest.php refactor(Memcache\Factory): move prefix generation to the factory class 2025-08-18 13:24:18 +02:00
AppScriptSortTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
AppTest.php fix: Deduplicate code by using DependencyAnalyzer in the AppManager 2025-08-18 17:09:40 +02:00
BinaryFinderTest.php chore: run rector on tests with new rule 2025-06-12 18:38:29 +02:00
CapabilitiesManagerTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ConfigTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ContactsManagerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
DateTimeFormatterTest.php chore: run rector 2025-07-01 22:45:52 +02:00
EmojiHelperTest.php chore: run rector 2025-07-01 22:45:52 +02:00
ErrorHandlerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
EventSourceFactoryTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
FilesTest.php test: move legacy tests to non-depecated class tests 2025-05-16 23:09:14 +02:00
HelperStorageTest.php chore: run rector 2025-07-01 22:45:52 +02:00
HookHelper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ImageTest.php chore: run rector 2025-07-01 22:45:52 +02:00
InfoXmlTest.php chore: run rector 2025-07-01 22:45:52 +02:00
InitialStateServiceTest.php chore: run rector 2025-07-01 22:45:52 +02:00
InstallerTest.php chore: Set installShippedApps as non-static in Installer 2025-08-18 16:18:27 +02:00
LargeFileHelperGetFileSizeTest.php chore: run rector 2025-07-01 22:45:52 +02:00
LargeFileHelperTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
LegacyHelperTest.php chore: run rector 2025-07-01 22:45:52 +02:00
LoggerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
MemoryInfoTest.php chore: run rector 2025-07-01 22:45:52 +02:00
NaturalSortTest.php chore: run rector 2025-07-01 22:45:52 +02:00
NavigationManagerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
RepairTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
ServerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
SetupTest.php chore: run rector 2025-07-01 22:45:52 +02:00
SubAdminTest.php refactor(querybuilder): Port away from qb::execute() in tests/ 2025-09-02 11:55:58 +02:00
TagsTest.php fix(TagsTest): Declare rootFolder property 2025-09-15 17:09:54 +02:00
TemplateFunctionsTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
TemplateLayoutTest.php feat(preset): share password protection 2025-08-12 14:37:32 -01:00
TempManagerTest.php chore: run rector on tests 2025-06-12 18:31:58 +02:00
TestCase.php feat(test-case): allow to use PHPUnit Group attributes to mark tests requiring database 2025-10-06 13:03:15 +00:00
TestMoveableMountPoint.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
UpdaterTest.php fix: Cleanup OC_App uses in Updater class 2025-08-18 16:13:14 +02:00
UrlGeneratorTest.php chore: run rector 2025-07-01 22:45:52 +02:00
UtilCheckServerTest.php chore: run rector 2025-07-01 22:45:52 +02:00
UtilTest.php chore: run rector 2025-07-01 22:45:52 +02:00