nextcloud-server/tests/lib
nfebe 6bccaf778a 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-02 09:45:18 +07:00
..
Accounts refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Activity refactor: Cleanup some unit tests 2025-10-01 10:11:27 +07:00
App Merge pull request #55405 from nextcloud/carl/cleanup-some-tests 2025-10-01 15:02:00 +07:00
AppFramework feat(rate-limit): Allow overwriting the rate limit 2025-11-12 08:59:40 +07:00
Archive chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
Authentication chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
Avatar chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +07:00
BackgroundJob refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Cache refactor(tests): `returnValue` is deprecated 2025-11-05 15:42:34 +07:00
Calendar chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
Collaboration fix(sharing): Add isTrustedServer flag to lookup results 2025-11-24 23:32:40 +07:00
Command fix(jobs): Limit command jobs to known cases 2025-11-04 11:10:40 +07:00
Comments refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Config chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
Contacts/ContactsMenu chore: run rector 2025-07-01 22:45:52 +07:00
DB fix(oracle): Don't run tests against unsupported Oracle version anymore 2025-11-27 14:39:51 +07:00
Diagnostics chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
DirectEditing refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Encryption refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Federation refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Files fix(View): Normalize path in `getAbsolutePath` 2025-11-25 19:30:53 +07:00
FilesMetadata refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
GlobalScale chore: run rector 2025-07-01 22:45:52 +07:00
Group Revert "feat(group): Sanitize group names and ids on creation" 2025-11-07 10:37:50 +07:00
Hooks refactor: use logical `&&` `||` instead of weak `and` `or` operators 2025-09-27 23:02:18 +07:00
Http feat(CertificateManager): Add option to specify the default certificates bundle path 2025-12-01 10:47:23 +07:00
IntegrityCheck test: Adjust the hashes and signatures 2025-08-25 13:19:36 +07:00
L10N fix(l10n): do not consider user language when getting the generic one 2025-11-10 19:50:19 +07:00
Lock refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Lockdown refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Log chore: run rector 2025-07-01 22:45:52 +07:00
Mail feat(ocp): add email address validator 2025-08-14 18:34:36 +07:00
Memcache refactor(tests): `getMockForTrait` is deprecated 2025-11-05 15:42:34 +07:00
Migration chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
Net test(net): include test for localhost by IP 2025-10-14 10:33:35 +07:00
Notification chore: run rector 2025-07-01 22:45:52 +07:00
OCS chore: run rector 2025-07-01 22:45:52 +07:00
Preview chore(tests): cleanup previews in teardown 2025-11-05 15:42:40 +07:00
Profile/Actions chore: run rector 2025-07-01 22:45:52 +07:00
Remote chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
Repair chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
RichObjectStrings chore: run rector 2025-07-01 22:45:52 +07:00
Route refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Search test(SearchComposerTest): add unit test for getProviders with mixed order values 2025-08-11 09:42:56 +07:00
Security feat(CertificateManager): Add option to specify the default certificates bundle path 2025-12-01 10:47:23 +07:00
Session chore: run rector 2025-07-01 22:45:52 +07:00
Settings chore: run rector 2025-07-01 22:45:52 +07:00
SetupCheck chore: run rector 2025-07-01 22:45:52 +07:00
Share refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Share20 fix(sharing): Allow public share access for everyone 2025-12-02 09:45:18 +07:00
Snowflake feat(config): add serverid configuration and use it for Snowflakes 2025-11-03 14:25:09 +07:00
Support chore: Fix CrashReport\Registry tests 2025-07-08 13:32:14 +07:00
SystemTag refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Talk chore: Add SPDX header 2024-05-13 17:41:36 +07:00
TaskProcessing Merge pull request #56063 from nextcloud/tests/taskprocessing 2025-10-31 15:04:49 +07:00
Template refactor(tests): `getMockForAbstractClass` is deprecated 2025-11-05 15:42:34 +07:00
TextProcessing refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
Traits chore: migrate to PHPUnit 11 2025-11-05 15:42:33 +07:00
Updater chore: run rector 2025-07-01 22:45:52 +07:00
User chore: migrate to PHPUnit 11 2025-11-05 15:42:33 +07:00
Util chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
AllConfigTest.php chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
AppConfigIntegrationTest.php chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
AppConfigTest.php refactor(Memcache\Factory): move prefix generation to the factory class 2025-08-18 13:24:18 +07:00
AppScriptSortTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
AppTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
BinaryFinderTest.php test(BinaryFinder): Make sure the test is portable between systems 2025-09-05 09:47:47 +07:00
CapabilitiesManagerTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ConfigTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ContactsManagerTest.php chore: run rector 2025-07-01 22:45:52 +07:00
DateTimeFormatterTest.php chore: run rector 2025-07-01 22:45:52 +07:00
EmojiHelperTest.php chore: run rector 2025-07-01 22:45:52 +07:00
ErrorHandlerTest.php chore: run rector 2025-07-01 22:45:52 +07:00
EventSourceFactoryTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
FilesTest.php refactor: Remove OC_Helper::streamCopy 2025-09-28 12:52:14 +07:00
HelperStorageTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
HookHelper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ImageTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
InfoXmlTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
InitialStateServiceTest.php chore: run rector 2025-07-01 22:45:52 +07:00
InstallerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
LargeFileHelperGetFileSizeTest.php chore: run rector 2025-07-01 22:45:52 +07:00
LargeFileHelperTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
LegacyHelperTest.php refactor: Remove OC_Helper::streamCopy 2025-09-28 12:52:14 +07:00
LoggerTest.php chore: run rector 2025-07-01 22:45:52 +07:00
MemoryInfoTest.php chore: setting test metadata in annotations is deprecated (use attributes) 2025-11-05 15:42:40 +07:00
NaturalSortTest.php chore: run rector 2025-07-01 22:45:52 +07:00
NavigationManagerTest.php chore: run rector 2025-07-01 22:45:52 +07:00
RepairTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
ServerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
SetupTest.php chore: run rector 2025-07-01 22:45:52 +07:00
SubAdminTest.php chore: Run rector with new rules for fetch 2025-11-18 17:45:57 +07:00
TagsTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
TempManagerTest.php chore: run rector on tests 2025-06-12 18:31:58 +07:00
TemplateFunctionsTest.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
TemplateLayoutTest.php fix: Cleanup and fix tests, and fix related issues in code 2025-09-30 11:53:59 +07:00
TestCase.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
TestMoveableMountPoint.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +07:00
UpdaterTest.php fix: Cleanup OC_App uses in Updater class 2025-08-18 16:13:14 +07:00
UrlGeneratorTest.php fix(tests): Use testing application for testing ajax endpoints, not user_ldap 2025-11-21 14:23:58 +07:00
UtilCheckServerTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00
UtilTest.php refactor: apply rector rules for PHPUnit 10 2025-10-27 21:56:04 +07:00